|
@@ -54,6 +54,9 @@ class Index extends Api
|
|
|
->select();
|
|
|
$dongtai = list_domain_image($dongtai, ['image']);
|
|
|
|
|
|
+ //维保公司的客服
|
|
|
+ $kefu_id = Db::name('pc_admin')->where('company_id',$this->auth->company_id)->order('is_kefu desc,id asc')->value('id');
|
|
|
+
|
|
|
//
|
|
|
$result = [
|
|
|
'banner' => $banner,
|
|
@@ -62,7 +65,7 @@ class Index extends Api
|
|
|
'dongtai' => $dongtai,
|
|
|
'huojing' => 119,
|
|
|
'headermobile' => $header['header_mobile'],
|
|
|
- 'im_kefu' => 'kefu_'.$this->auth->company_id,
|
|
|
+ 'im_kefu' => 'kefu_'.$kefu_id,
|
|
|
];
|
|
|
|
|
|
$this->success(1, $result);
|