|
@@ -87,7 +87,7 @@ class WelcomeController extends BaseController
|
|
|
* "msg": "",
|
|
|
* "data": {}
|
|
|
*/
|
|
|
- public function getCustomerServiceImg()
|
|
|
+ public function getCustomerServiceImg(Request $request)
|
|
|
{
|
|
|
$link = CustomMsgService::customerImgUrlByChannelId($this->distribution_channel_id);
|
|
|
$name = 'zhenzhenyd';
|
|
@@ -96,6 +96,16 @@ class WelcomeController extends BaseController
|
|
|
} else {
|
|
|
$url = env('KE_FU_QRCODE', 'https://cdn-novel.iycdm.com/static/img/kefu20190319.jpg');
|
|
|
}
|
|
|
+
|
|
|
+ // 获取客服信息
|
|
|
+ $package = $request->header('x-package', '');
|
|
|
+ $supports = config('option.supports');
|
|
|
+ $support = getProp($supports, $package, []);
|
|
|
+ if ($support) {
|
|
|
+ $url = getProp($support, 'customerImage', 'https://cdn-novel.iycdm.com/static/img/kefu20190319.jpg');
|
|
|
+ $name = getProp($support, 'customerAccount', 'zhenzhenyd');
|
|
|
+ }
|
|
|
+
|
|
|
return response()->success(compact('url', 'name'));
|
|
|
}
|
|
|
|