Commit 6edfa262 authored by zhuwei's avatar zhuwei

客户搜索

parent 457c3864
......@@ -372,7 +372,7 @@ class Broker extends Basic
$user = new Users();
// 查询数据集
$user_res = $user->where('user_name|user_phone', 'like', "%$phone_or_name%")
$user_res = $user->where('user_name|user_phone|id', 'like', "%$phone_or_name%")
//->where('create_time','< time',$Two_days_ago)//小于两天前,即排除48小时内受保护的客户
// ->whereOr('agent_id',$user_id)
......
......@@ -47,4 +47,16 @@ class WxAuthorization extends Basic
}
}
public function getWxInfoV2()
{
$code = empty($_GET['code']) ? null : $_GET['code'];
if (!$code) {
$this->_wxApi->getWxCode($this->url);
} else {
$userInfo = $this->_wxApi->getUserInfoByAccessToken($code);
dump($userInfo);
}
}
}
\ No newline at end of file
......@@ -275,7 +275,9 @@ Route::group('index', [
'delNotice' => [ 'index/notice/delNotice', [ 'method' => 'POST' ] ], //删除公告
'addNotice' => [ 'index/notice/addNotice', [ 'method' => 'POST' ] ], //新增公告
'addNoticeView' => [ 'index/notice/addNoticeView', [ 'method' => 'GET' ] ], //新增公告
'getWxInfo' => [ 'index/WxAuthorization/getWxInfo', [ 'method' => 'POST|GET' ] ], //wx
'getWxInfo' => [ 'index/WxAuthorization/getWxInfo', [ 'method' => 'POST|GET' ] ], //wx
'getWxInfoV2' => [ 'index/WxAuthorization/getWxInfoV2', [ 'method' => 'POST|GET' ] ], //wx
'evaluationList' => [ 'index/Evaluation/evaluationList', [ 'method' => 'POST|GET' ] ], //评价列表 朱伟 2018-06-13
......
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