作者 lyh

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

@@ -233,7 +233,10 @@ class LoginController extends BaseController @@ -233,7 +233,10 @@ class LoginController extends BaseController
233 $common = new Common(); 233 $common = new Common();
234 $arr = $common->decrypt(urldecode($this->param['token'])); 234 $arr = $common->decrypt(urldecode($this->param['token']));
235 if(empty($arr)){ 235 if(empty($arr)){
236 - $this->response('登录失败',Code::USER_ERROR); 236 + $this->response('非法请求!',Code::USER_ERROR);
  237 + }
  238 + if (empty($arr['timestamp']) || time() - $arr['timestamp'] > 60) {
  239 + $this->response('授权已过期,请重新获取授权码!',Code::USER_ERROR);
237 } 240 }
238 //没有from_order_id的项目 进入演示版 运营中心 241 //没有from_order_id的项目 进入演示版 运营中心
239 $arr['from_order_id'] = $arr['from_order_id'] ?? 0; 242 $arr['from_order_id'] = $arr['from_order_id'] ?? 0;