Commit 6b13783e authored by hangjun83's avatar hangjun83

优化

parent b007a78e
<?php
/*
* This file is part of the Jiannei/lumen-api-starter.
*
* (c) Jiannei <longjian.huang@foxmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace App\Services\ThirdPlatform;
use App\Jobs\queue\QueueJob;
......@@ -27,8 +18,13 @@ class ThirdPlatformService extends PlatformAbstractService
public function checkPlatformToken($platformName)
{
$this->setPlatformName($platformName);
$platformToken = $this->getPlatformInfo('platform_token');
return $platformToken;
$platform = $this->thirdApiPlatformRepository->getPlatformInfoByPlatformName($this->platformName);
if(!$platform){
return null;
}
$platform['platform_params'] = json_decode($platform['platform_params'], true);
$this->platformInfo = $platform;
return $platform;
}
}
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