pull/1/head
旭晓耿 4 years ago
parent a20e5ab784
commit 96f95b9480

@ -29,7 +29,7 @@ class ApiCommon extends Common
$cache = cache('Auth_'.$authKey.$platform); $cache = cache('Auth_'.$authKey.$platform);
// 校验sessionid和authKey // 校验sessionid和authKey
if (empty($sessionId) || empty($authKey) || empty($cache) || ($cache['sessionId'] !== $sessionId)) { if (empty($sessionId) || empty($authKey) || empty($cache)) {
header('Content-Type:application/json; charset=utf-8'); header('Content-Type:application/json; charset=utf-8');
$dataTime=date('H:i',time()); $dataTime=date('H:i',time());
exit(json_encode(['code' => 302, 'data' => ['extra' => 1, 'extraTime' => $dataTime], 'msg' => '请先登录!'])); exit(json_encode(['code' => 302, 'data' => ['extra' => 1, 'extraTime' => $dataTime], 'msg' => '请先登录!']));

Loading…
Cancel
Save