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
704ef47d
Commit
704ef47d
authored
Mar 02, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电话跟进标签
parent
e80c587c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
Broker.php
application/api_broker/controller/Broker.php
+12
-1
ULabels.php
application/model/ULabels.php
+11
-0
No files found.
application/api_broker/controller/Broker.php
View file @
704ef47d
...
@@ -13,6 +13,7 @@ use app\api\untils\JwtUntils;
...
@@ -13,6 +13,7 @@ use app\api\untils\JwtUntils;
use
app\api_broker\extend\Basic
;
use
app\api_broker\extend\Basic
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\GOperatingRecords
;
use
app\model\GOperatingRecords
;
use
app\model\ULabels
;
use
app\model\UPhoneFollowPp
;
use
app\model\UPhoneFollowPp
;
use
app\model\Users
;
use
app\model\Users
;
use
app\model\Agents
;
use
app\model\Agents
;
...
@@ -250,7 +251,17 @@ class Broker extends Basic
...
@@ -250,7 +251,17 @@ class Broker extends Basic
//dump($Agents_res);
//dump($Agents_res);
$UPhoneFollowPp_res
[
$k
][
'agentinfo'
]
=
$Agents_res
?
$Agents_res
[
'agentshopname'
]
.
'-'
.
$Agents_res
[
'realname'
]
:
'未知'
;
$UPhoneFollowPp_res
[
$k
][
'agentinfo'
]
=
$Agents_res
?
$Agents_res
[
'agentshopname'
]
.
'-'
.
$Agents_res
[
'realname'
]
:
'未知'
;
$UPhoneFollowPp_res
[
$k
][
'user_pic'
]
=
ADMIN_URL_TL
.
'user_header/'
.
$Agents_res
[
'head_portrait'
];
$UPhoneFollowPp_res
[
$k
][
'user_pic'
]
=
ADMIN_URL_TL
.
'user_header/'
.
$Agents_res
[
'head_portrait'
];
$UPhoneFollowPp_res
[
$k
][
'label'
]
=
'已打通'
;
$UPhoneFollowPp_res
[
$k
][
'label'
]
=
'未知'
;
//dump($v['labels_id']);
//电话跟进标签
if
(
$v
[
'labels_id'
]){
$table
=
new
ULabels
();
$table_res
=
$table
->
get_labelsname
(
$v
[
'labels_id'
]);
//dump($table_res);
//exit;
$UPhoneFollowPp_res
[
$k
][
'label'
]
=
$table_res
[
0
][
'name'
];
}
}
}
...
...
application/model/ULabels.php
View file @
704ef47d
...
@@ -41,4 +41,15 @@ class ULabels extends BaseModel
...
@@ -41,4 +41,15 @@ class ULabels extends BaseModel
}
}
}
}
public
function
get_labelsname
(
$id
)
{
$u_labels
=
db
(
'u_labels'
)
->
where
(
'id'
,
$id
)
->
field
(
'id,name'
)
//->limit($pagesize)
//->page($pagenum)
->
select
();
return
$u_labels
;
}
}
}
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