|
@@ -216,9 +216,12 @@ class AccountRepository {
|
|
|
* @throws \Exception
|
|
* @throws \Exception
|
|
|
*/
|
|
*/
|
|
|
public function updateEffectiveTime($accountIdentity, $token) {
|
|
public function updateEffectiveTime($accountIdentity, $token) {
|
|
|
|
|
+ echo 1;
|
|
|
lm('account_token', 'Commons')->where('account_identity', $accountIdentity)->update(['effective_time' => strtotime('now'), 'last_time' => date('Y-m-d H:i:s')]);
|
|
lm('account_token', 'Commons')->where('account_identity', $accountIdentity)->update(['effective_time' => strtotime('now'), 'last_time' => date('Y-m-d H:i:s')]);
|
|
|
lm('account_detailed', 'Commons')->where('account_identity', $accountIdentity)->update(['last_time' => date('Y-m-d H:i:s')]);
|
|
lm('account_detailed', 'Commons')->where('account_identity', $accountIdentity)->update(['last_time' => date('Y-m-d H:i:s')]);
|
|
|
|
|
+ echo 3;
|
|
|
$userInfo = $this->tokenManager->getAccountInfo($token);
|
|
$userInfo = $this->tokenManager->getAccountInfo($token);
|
|
|
|
|
+ echo 2;
|
|
|
if (!$userInfo)
|
|
if (!$userInfo)
|
|
|
return ['data' => '', 'status' => '-4001', 'msg' => lang()->get('-4001')];
|
|
return ['data' => '', 'status' => '-4001', 'msg' => lang()->get('-4001')];
|
|
|
$data = $_SESSION['uinfo'] = $userInfo->toArray();
|
|
$data = $_SESSION['uinfo'] = $userInfo->toArray();
|