Commit 8e758348 authored by zw's avatar zw

Merge remote-tracking branch 'origin/test' into test

# Conflicts: # public/resource/js/performance_ranking.js
parents 73bea567 9c263c99
...@@ -193,15 +193,16 @@ class Broker extends Basic ...@@ -193,15 +193,16 @@ class Broker extends Basic
/*处理多个手机登录聊天*/ /*处理多个手机登录聊天*/
$m_chat_ext = new ChatUserExt(); $m_chat_ext = new ChatUserExt();
$bind_where['is_forbidden'] = 0; $bind_where['is_forbidden'] = 0;
$bind_where['user_id'] = ['<>', $agents_data['id']]; $bind_where['user_id'] = $agents_data['id'];
$bind_where['type'] = 1; $bind_where['type'] = 1;
$bind_where['push_id'] = $params["push_id"]; $del_bind_id = $m_chat_ext->getChatUserExtByUserId($bind_where, 'a.id,a.push_id', 100);
$del_bind_id = $m_chat_ext->getChatUserExtByUserId($bind_where, 'a.id', 100);
if (count($del_bind_id) > 0) { if (count($del_bind_id) > 0) {
foreach ($del_bind_id as $v) { foreach ($del_bind_id as $v) {
if ($v['push_id'] != $params["push_id"]) {
$m_chat_ext->updateDate(['is_forbidden'=>1], ['id'=>$v['id']]); $m_chat_ext->updateDate(['is_forbidden'=>1], ['id'=>$v['id']]);
} }
} }
}
/*处理多个手机登录聊天*/ /*处理多个手机登录聊天*/
return $this->response(200, $data['msg'], $data['data']); return $this->response(200, $data['msg'], $data['data']);
......
...@@ -147,7 +147,8 @@ class CellPhone extends Basic ...@@ -147,7 +147,8 @@ class CellPhone extends Basic
} }
} }
$data['list'] = $list; $data['list'] = $list;
$data['total'] = $report->getCallListTotal($where); // $data['total'] = $report->getCallListTotal($where);
$data['total'] = 40000;
return $this->response($result['code'], $result['msg'], $data); return $this->response($result['code'], $result['msg'], $data);
} else { } else {
return view('cell_phone/index'); return view('cell_phone/index');
......
...@@ -72,17 +72,6 @@ class ShareShop extends Basic ...@@ -72,17 +72,6 @@ class ShareShop extends Basic
} }
} }
dump('=======');
dump('=======');
dump('=======');
dump('=======');
dump('=======');
dump('=======');
dump('=======');
dump('=======');
dump('=======');
dump('是否手机号注册用户');
dump($is_user);
$this->assign('data',json_encode($params)); $this->assign('data',json_encode($params));
return view("share_detail"); return view("share_detail");
......
...@@ -447,13 +447,10 @@ class UserService ...@@ -447,13 +447,10 @@ class UserService
if(!$open_id){ if(!$open_id){
return false; return false;
} }
dump($open_id);
$param['wx_open_id'] = $open_id; $param['wx_open_id'] = $open_id;
$fields='a.user_phone'; $fields='a.user_phone';
$result = $this->user->getUserInfoByOpenId($param, $fields); $result = $this->user->getUserInfoByOpenId($param, $fields);
dump($result);
Log::write($result, 'isUserByweiXin'); //记录日志
if ($result) { if ($result) {
return true; return true;
......
...@@ -439,7 +439,7 @@ class PrivacyNumber ...@@ -439,7 +439,7 @@ class PrivacyNumber
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function totalAgentCall($month) public function totalAgentCall($month = '')
{ {
set_time_limit(0); // 取消脚本运行时间的超时上限 set_time_limit(0); // 取消脚本运行时间的超时上限
$call = new TAgentTotalCallModel(); $call = new TAgentTotalCallModel();
......
...@@ -284,8 +284,7 @@ define (['doT', 'ckfinder','ckfinderStart', 'css!style/home.css',"datetimepicker ...@@ -284,8 +284,7 @@ define (['doT', 'ckfinder','ckfinderStart', 'css!style/home.css',"datetimepicker
url: '/index/getRandKingListByAgentId', url: '/index/getRandKingListByAgentId',
type: 'GET', type: 'GET',
async: true, async: true,
data: { data: params,
},
dataType: 'json', dataType: 'json',
success: function(data) { success: function(data) {
$('#tbody').empty(); $('#tbody').empty();
......
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