fix: bug修复
This commit is contained in:
@@ -256,8 +256,9 @@ class BaseController extends Controller {
|
||||
private function check_login_token($customer_id, $curr_time, $p)
|
||||
{
|
||||
$expire = 86400 * 30;
|
||||
if (time() - $curr_time > $expire)
|
||||
if (time() - $curr_time > $expire) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$temp_p = $this->make_pwd($customer_id, $curr_time);
|
||||
if ($temp_p !== $p)
|
||||
@@ -316,8 +317,9 @@ class BaseController extends Controller {
|
||||
|
||||
protected function _logout()
|
||||
{
|
||||
if (Cookie::has('c'))
|
||||
if (Cookie::has('c')) {
|
||||
Cookie::delete('c');
|
||||
}
|
||||
|
||||
$this->customer_id = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user