Commit 8005df23 authored by hangjun83's avatar hangjun83

乐妍

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