...
|
...
|
@@ -290,15 +290,9 @@ class LoginController extends AbstractAction |
|
|
}
|
|
|
|
|
|
if (isset($result['code']) && $result['code'] == 200 && !empty($result['data']['uid'])) {
|
|
|
$token = Helpers::makeToken($result['data']['uid']);
|
|
|
$this->setSession('_TOKEN', $token);
|
|
|
$this->setSession('_LOGIN_UID', $result['data']['uid']);
|
|
|
$this->setCookie('_TOKEN', $token);
|
|
|
$this->go(Helpers::syncUserSession($result['data']['uid'], $refer));
|
|
|
}
|
|
|
else {
|
|
|
$this->go($refer);
|
|
|
$this->syncUserSession($result['data']['uid']);
|
|
|
}
|
|
|
$this->go($refer);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -319,7 +313,8 @@ class LoginController extends AbstractAction |
|
|
'data' => $uid
|
|
|
);
|
|
|
}
|
|
|
} while (false);
|
|
|
}
|
|
|
while (false);
|
|
|
|
|
|
$this->helpJsonCallbackResult($callback, $result['code'], $result['message'], $result['data']);
|
|
|
}
|
...
|
...
|
|