Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
6edfa262
Commit
6edfa262
authored
Nov 09, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户搜索
parent
457c3864
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
Broker.php
application/api_broker/controller/Broker.php
+1
-1
WxAuthorization.php
application/index/controller/WxAuthorization.php
+13
-0
route.php
application/route.php
+3
-1
No files found.
application/api_broker/controller/Broker.php
View file @
6edfa262
...
...
@@ -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)
...
...
application/index/controller/WxAuthorization.php
View file @
6edfa262
...
...
@@ -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
application/route.php
View file @
6edfa262
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment