Commit cb104148 authored by zhuwei's avatar zhuwei

1

parent 542a498a
......@@ -37,7 +37,6 @@ class BrokerService
{
$params["agent_id"] = $agent_id;
$params["is_pc"] = $is_pc;
$result = $this->aBD->getDeviceByAgentId($params);
if (count($result) <= 0) {
//新增设备绑定关系 默认直接登陆
......@@ -61,6 +60,8 @@ class BrokerService
if ($item["is_forbidden"] == 0) {
return true;
} elseif ($item["is_forbidden"] == 1) { //已存在申请关系
big_log('已存在申请关系:'.$device_id);
$is_exits = true;
}
}
......
......@@ -178,8 +178,15 @@ class ImageDepot extends Basic
}
public function ceshi(){
$content = '99888888';
big_log($content);
$time = time();
$begin_date = date("Y-m-d H:i:s", $time - 1800);
$end_date = date("Y-m-d H:i:s", $time);
echo $time . '</br>';
echo $begin_date . '</br>';
echo $end_date . '</br>';
}
}
......
......@@ -97,6 +97,7 @@ class Login extends Basic
if($mac_address){
$is_pc = 2;//客户端
$last_login_ip = $mac_address;//device_id存MAC地址
$model = $mac_address;//存MAC地址
}else{
$is_pc = 1;//浏览器
}
......
......@@ -138,7 +138,7 @@ class ChatRelation extends Model
->where($params)
->count();
}
// big_log($this->getLastSql());
// dump($this->getLastSql($return));
return $return;
}
......
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