Commit cc774d6c authored by hujun's avatar hujun

device_id 个推设备识别号

parent 26fde549
......@@ -47,6 +47,7 @@ class Broker extends Basic
if (isset($agents_data['id']) && ($agents_data['status'] == 0)) {
if ($agents_data['password'] == md5($this->params['pwd'])) {
$agents_data['device_id'] = $this->params['device_id'];
$agents_data['last_login_ip'] = ip2long($this->request->ip());
$agents_data['last_login_time'] = date('Y-m-d H:i:s');
$agents_data->allowField(true)->save();
......
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