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
a50021f9
Commit
a50021f9
authored
Feb 28, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户动态展示加搜索加客户详情加创建时间,加头像,加客方
parent
b3054e44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
Broker.php
application/api_broker/controller/Broker.php
+13
-1
No files found.
application/api_broker/controller/Broker.php
View file @
a50021f9
...
@@ -14,6 +14,7 @@ use app\api_broker\extend\Basic;
...
@@ -14,6 +14,7 @@ use app\api_broker\extend\Basic;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\UPhoneFollowPp
;
use
app\model\UPhoneFollowPp
;
use
app\model\Users
;
use
app\model\Users
;
use
app\model\Agents
;
use
think\Request
;
use
think\Request
;
class
Broker
extends
Basic
class
Broker
extends
Basic
...
@@ -269,8 +270,19 @@ class Broker extends Basic
...
@@ -269,8 +270,19 @@ class Broker extends Basic
// 查询数据集
// 查询数据集
$user_res
=
$user
$user_res
=
$user
->
where
(
'id'
,
$user_id
)
->
where
(
'id'
,
$user_id
)
->
field
(
'id as user_id,sex,user_nick,user_phone'
)
->
field
(
'id as user_id,agent_id,sex,user_nick,user_pic,user_phone,create_time'
)
->
find
();
$user_res
=
json_decode
(
json_encode
(
$user_res
),
true
);
//对象转数组
//dump($user_res);
$user_res
[
'user_pic'
]
=
HEADERIMGURL
.
$user_res
[
'user_pic'
];
$table
=
new
Agents
();
$Agents_res
=
$table
->
where
(
'id'
,
$user_res
[
'agent_id'
])
->
field
(
'realname,phone'
)
->
find
();
->
find
();
$Agents_res
=
json_decode
(
json_encode
(
$Agents_res
),
true
);
//对象转数组
//dump($Agents_res);
$user_res
[
'agentinfo'
]
=
$Agents_res
?
$Agents_res
[
'realname'
]
.
'/'
.
$Agents_res
[
'phone'
]
:
'未知'
;
return
$this
->
response
(
"200"
,
"success!"
,
[
'user_info'
=>
$user_res
,
'user_date'
=>
$UPhoneFollowPp_res
,
'pagenum'
=>
$pagenum
,
'total'
=>
$total
]);
return
$this
->
response
(
"200"
,
"success!"
,
[
'user_info'
=>
$user_res
,
'user_date'
=>
$UPhoneFollowPp_res
,
'pagenum'
=>
$pagenum
,
'total'
=>
$total
]);
}
else
{
}
else
{
return
$this
->
response
(
"101"
,
"失败!"
);
return
$this
->
response
(
"101"
,
"失败!"
);
...
...
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