Commit 8005df23 authored by hangjun83's avatar hangjun83

乐妍

parent 2607d224
......@@ -67,9 +67,11 @@ class LeyanService
if(empty($token)){
$apiToken = $this->apiService->getToken();
if($apiToken){
$apiToken['currentTime'] = time();
$this->apiService->storePlatformDataEntries('leyan_api_token',$apiToken);
return $apiToken['token'];
$storeToken = [];
$storeToken['token'] = $apiToken;
$storeToken['currentTime'] = time();
$this->apiService->storePlatformDataEntries('leyan_api_token',$storeToken);
return $storeToken['token'];
}
}
}catch(\Exception $exception){
......
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