Commit 163abfad authored by hangjun83's avatar hangjun83

优化

parent a359b138
......@@ -71,7 +71,9 @@ class Authenticate
$params = $request->all();
// 内部平台调用
if(isset($params['platform']) && !empty($params['platform'])){
$platformToken = app(ThirdPlatformService::class)->checkPlatformToken($params['platform']);
switch($params['platform']){
case 'zkh' : $platformToken = app(ZhenKhService::class)->apiService->getPlatformInfo('platform_token');break;
}
if(empty($platformToken) || $decodeToken['hash'] !== $platformToken){
throw new UnauthorizedHttpException('JWTAuth','无效的平台token');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment