chore(config): 针对智能客服WebSocket访问地址,由服务器端指定分配
This commit is contained in:
@@ -128,7 +128,15 @@ class Config extends BaseApi
|
||||
$map_config = $config_model->getMapConfig($this->site_id, 'shop')[ 'data' ][ 'value' ];
|
||||
|
||||
// 智能客服配置信息
|
||||
$aikefu_config = event('KefuGetConfig', ['site_id' => $this->site_id], true);
|
||||
$aikefu_config = [
|
||||
'ws_url' => '/ws/aikefu', // websocket 通讯地址
|
||||
];
|
||||
$aikefu_config_value = event('KefuGetConfig', ['site_id' => $this->site_id], true);
|
||||
if (is_array($aikefu_config_value) && isset($aikefu_config_value['enabled'])) {
|
||||
if ($aikefu_config_value['enabled'] == true) {
|
||||
$aikefu_config = array_merge($aikefu_config, $aikefu_config_value);
|
||||
}
|
||||
}
|
||||
|
||||
$website_model = new SiteModel();
|
||||
$site_info = $website_model->getSiteInfo([ [ 'site_id', '=', $this->site_id ] ], 'site_id,site_domain,site_name,logo,seo_title,seo_keywords,seo_description,site_tel,logo_square')[ 'data' ];
|
||||
|
||||
Reference in New Issue
Block a user