fix : user site
This commit is contained in:
@@ -7,6 +7,7 @@ namespace App\Controller\Api;
|
||||
use App\Controller\AbstractController;
|
||||
use App\Middleware\Api\JwtAuthMiddleware;
|
||||
use App\Service\Api\IndexService;
|
||||
use App\Service\Api\System\AliStsService;
|
||||
use App\Service\Api\System\CityListService;
|
||||
use App\Service\Api\System\MiniWxConfigService;
|
||||
use App\Service\Api\System\SiteListService;
|
||||
@@ -56,4 +57,11 @@ class SystemController extends AbstractController
|
||||
{
|
||||
return (new IndexService)->handle();
|
||||
}
|
||||
|
||||
#[RequestMapping(path: "sts/accredit", methods: "GET")]
|
||||
#[Middleware(JwtAuthMiddleware::class)]
|
||||
public function aliSts()
|
||||
{
|
||||
return (new AliStsService)->handle();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,9 @@ use App\Service\Api\User\InviteListService;
|
||||
use App\Service\Api\User\MyPageService;
|
||||
use App\Service\Api\User\SiteService;
|
||||
use App\Service\Api\User\UnBindPhoneService;
|
||||
use App\Service\Api\User\UpdateProfileService;
|
||||
use Hyperf\HttpServer\Annotation\Controller;
|
||||
use Hyperf\HttpServer\Annotation\Middleware;
|
||||
use Hyperf\HttpServer\Annotation\Middlewares;
|
||||
use Hyperf\HttpServer\Annotation\RequestMapping;
|
||||
use Hyperf\Validation\Annotation\Scene;
|
||||
@@ -137,8 +139,15 @@ class UserController extends AbstractController
|
||||
return (new MyPageService)->handle();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
#[RequestMapping(path: 'update_profile',methods: 'POST')]
|
||||
#[Scene(scene: 'update_profile')]
|
||||
public function updateProfile()
|
||||
{
|
||||
|
||||
return (new UpdateProfileService)->handle();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user