orders push modify format

This commit is contained in:
qianhy
2023-03-09 10:19:06 +08:00
parent 870a19fb1b
commit 7d43757135
+10 -3
View File
@@ -444,7 +444,7 @@ class Qyrobot{
return false;
}
$biz_row = $this->ci->biz_model->get(['id'=>$order_row['biz_id']]);
if($biz_row['type']==3){
/*if($biz_row['type']==3){
$channel_users = $this->ci->app_licheb_channel_biz_model->select(['biz_id'=>$biz_row['id']],'','','','uid');
$user_ids = array_column($channel_users,'uid');
$user_ids_str = implode(',',$user_ids);
@@ -465,11 +465,18 @@ class Qyrobot{
}
$biz_info = "{$user_info}渠道 {$biz_row['biz_name']}";
}elseif($biz_row['type']==4){ //合伙店
$biz_info = "合伙店 {$biz_row['biz_name']}";
$biz_info = "合伙店 {$biz_row['biz_name']}";
}else{
$user = $this->ci->app_licheb_users_model->get(['id'=>$order_row['sale_id']],'uname'); //获取销售员
$biz_info = "{$biz_row['biz_name']} {$user['uname']}";
}
}*/
$city_row = $this->ci->area_model->get(['city_id'=>$biz_row['city_id']]);
$city_info = str_replace('市','',$city_row['city_name']).'区域';
$type_name = $this->ci->biz_model->type_ary($biz_row['type']);
$user = $this->ci->app_licheb_users_model->get(['id'=>$order_row['sale_id']],'uname');
$user_info = $user['uname'] ? $user['uname'] : '';
$biz_info = "{$city_info} {$biz_row['biz_name']}({$type_name}) {$user_info}";
$brand_row = $this->ci->auto_brand_model->get(['id'=>$order_row['brand_id']],'name');
$series_row = $this->ci->auto_series_model->get(['id'=>$order_row['s_id']],'name');
$attr_arr = [$order_row['v_id'], $order_row['cor_id']];