fix: bug修复

This commit is contained in:
2024-10-29 17:38:47 +08:00
parent 48bf3e6f33
commit cadb9dbcc4
31 changed files with 1032 additions and 662 deletions

View File

@@ -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;
}