Commit 24b80d99 authored by hujun's avatar hujun

客户详情修改

parent f6015531
...@@ -249,16 +249,16 @@ class Broker extends Basic ...@@ -249,16 +249,16 @@ class Broker extends Basic
$table= new AAgents(); $table= new AAgents();
foreach($UPhoneFollowPp_res as $k=>$v){ foreach($UPhoneFollowPp_res as $k=>$v){
$Agents_res = $table->verifyUser('name,phone','',['id'=>$v['agent_id']]); $agents_res = $table->verifyUser('name,phone,img','',['id'=>$v['agent_id']]);
$UPhoneFollowPp_res[$k]['agentinfo'] = $Agents_res ? $Agents_res['name'].'-'.$Agents_res['phone']:'未知'; $UPhoneFollowPp_res[$k]['agentinfo'] = $agents_res ? $agents_res['name'].'-'.$agents_res['phone']:'未知';
$UPhoneFollowPp_res[$k]['user_pic'] = AGENTHEADERIMGURL.$Agents_res['img']; $UPhoneFollowPp_res[$k]['user_pic'] = AGENTHEADERIMGURL.$agents_res['img'];
$UPhoneFollowPp_res[$k]['label'] = ''; $UPhoneFollowPp_res[$k]['label'] = '';
//电话跟进标签 //电话跟进标签
if($v['labels_id']){ if($v['labels_id']){
$table= new ULabels(); $table = new ULabels();
$table_res =$table->get_labelsname($v['labels_id']); $table_res = $table->get_labelsname($v['labels_id']);
$UPhoneFollowPp_res[$k]['label']=$table_res[0]['name']; $UPhoneFollowPp_res[$k]['label'] = $table_res[0]['name'];
} }
} }
...@@ -267,9 +267,8 @@ class Broker extends Basic ...@@ -267,9 +267,8 @@ class Broker extends Basic
$user_res['user_pic'] = HEADERIMGURL.$user_res['user_pic']; $user_res['user_pic'] = HEADERIMGURL.$user_res['user_pic'];
$table = new AAgents(); $table = new AAgents();
$Agents_res = $table->verifyUser('name,phone','', ['id'=>$user_res['agent_id']]); $agents_res = $table->verifyUser('name,phone','', ['id'=>$user_res['agent_id']]);
$user_res['agentinfo'] = $agents_res ? $agents_res['name'].'-'.$agents_res['phone']:'未知';
$user_res['agentinfo']=$Agents_res ? $Agents_res['name'].'-'.$Agents_res['phone']:'未知';
$records = new GOperatingRecords(); $records = new GOperatingRecords();
$records_result = $records->user_history($user_id); $records_result = $records->user_history($user_id);
......
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