fix(addon/aikefu): 获得当前配置有问题
This commit is contained in:
@@ -47,7 +47,7 @@ class Kefu extends BaseApi
|
||||
try {
|
||||
// 获取智能客服配置
|
||||
$kefu_config_model = new KefuConfigModel();
|
||||
$config_info = $kefu_config_model->getConfig($this->site_id);
|
||||
$config_info = $kefu_config_model->getConfig($this->site_id, $this->app_module)['data']['value'] ?? [];
|
||||
|
||||
if (empty($config_info) || $config_info['status'] != 1) {
|
||||
return $this->response($this->error('智能客服暂未启用'));
|
||||
@@ -198,7 +198,7 @@ class Kefu extends BaseApi
|
||||
try {
|
||||
// 获取智能客服配置
|
||||
$kefu_config_model = new KefuConfigModel();
|
||||
$config_info = $kefu_config_model->getConfig($this->site_id);
|
||||
$config_info = $kefu_config_model->getConfig($this->site_id, $this->app_module)['data']['value'] ?? [];
|
||||
|
||||
if (empty($config_info) || $config_info['status'] != 1) {
|
||||
return $this->response($this->error('智能客服暂未启用'));
|
||||
|
||||
Reference in New Issue
Block a user