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
d3f6a5d4
Commit
d3f6a5d4
authored
Mar 01, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
65f2fa65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
Broker.php
application/api_broker/controller/Broker.php
+15
-0
CellPhone.php
application/api_broker/controller/CellPhone.php
+0
-1
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/Broker.php
View file @
d3f6a5d4
...
...
@@ -354,4 +354,18 @@ class Broker extends Basic
$token
=
$jwt
->
createToken
(
$phone
);
return
$this
->
response
(
200
,
""
,
[
'AuthToken'
=>
$token
]);
}
/**
* 获取用户信息
*
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getAgentsByPhone
()
{
$data
=
$this
->
a_agents
->
getInfo
(
$this
->
params
[
'phone'
]);
$data
[
'openid'
]
=
""
;
return
$this
->
response
(
200
,
""
,
$data
);
}
}
\ No newline at end of file
application/api_broker/controller/CellPhone.php
View file @
d3f6a5d4
...
...
@@ -35,7 +35,6 @@ class CellPhone extends Basic
$phone_a
=
$this
->
params
[
'phone_a'
];
//经纪人手机号
$phone_b
=
$this
->
params
[
'phone_b'
];
//客户手机号
$record
=
empty
(
$this
->
params
[
'record'
])
?
true
:
false
;
//是否录音
$aliYunPhone
=
new
AliYunPhone
();
$bind
=
new
BindingPhone
();
$field
=
'phone_x'
;
...
...
application/route.php
View file @
d3f6a5d4
...
...
@@ -273,6 +273,7 @@ Route::group('broker', [
'getShopDetail'
=>
[
'api_broker/Shop/getShopDetail'
,
[
'method'
=>
'get'
]
],
'reportList'
=>
[
'api_broker/Report/reportList'
,
[
'method'
=>
'get'
]
],
'token'
=>
[
'api_broker/broker/token'
,
[
'method'
=>
'get'
]
],
'getAgentsByPhone'
=>
[
'api_broker/broker/getAgentsByPhone'
,
[
'method'
=>
'get'
]
],
]);
...
...
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