Commit 91a25b8a authored by zw's avatar zw

bug

parent 6e563614
......@@ -141,10 +141,10 @@ class Broker extends Basic
return $this->response(101, '密码错误');
}
//判断设备id是否存在
/* $is_login = $this->brokerService->judgeBand($params["device_id"], $agents_data['id'], $params["model"], 0, $params["push_id"], 0);
$is_login = $this->brokerService->judgeBand($params["device_id"], $agents_data['id'], $params["model"], 0, $params["push_id"], 0);
if (!$is_login) {
return $this->response("102", "该账号没有绑定该手机,请致电人事进行绑定。");
}*/
}
$agents_data['last_login_ip'] = ip2long($this->request->ip());
$agents_data['last_login_time'] = date('Y-m-d H:i:s');
......
......@@ -79,13 +79,13 @@ class Login extends Basic
}
$last_login_ip = ip2long($this->request->ip());
if ($user_data['id'] != 1) {
/*if ($user_data['id'] != 1) {
//判断设备id是否存在
$is_login = $this->brokerService->judgeBand($last_login_ip, $user_data['id'], $model, 0, $user_data['phone'], 1);
if (!$is_login) {
return $this->response("102", "该账号没有绑定该设备,请致电人事进行绑定。");
}
}
}*/
$where_rule['status'] = 0;
if ($user_data['id'] == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment