diff --git a/src/addon/aikefu/shop/controller/Kefu.php b/src/addon/aikefu/shop/controller/Kefu.php index abcda7d2f..c80d4d182 100644 --- a/src/addon/aikefu/shop/controller/Kefu.php +++ b/src/addon/aikefu/shop/controller/Kefu.php @@ -24,10 +24,19 @@ class Kefu extends BaseShop public function index() { $kefu_config_model = new KefuConfigModel(); - $config_info = $kefu_config_model->getConfig($this->site_id, $this->app_module)['data']['value'] ?? []; + $config_info = $kefu_config_model->getConfig($this->site_id, $this->app_module)["data"]["value"] ?? []; $this->assign("config_info", $config_info); return $this->fetch("kefu/index"); } + + /** + * 合并会话和消息页面 + * @return mixed + */ + public function combined() + { + return $this->fetch("kefu/combined"); + } /** * 智能客服配置页 diff --git a/src/addon/aikefu/shop/view/kefu/combined.html b/src/addon/aikefu/shop/view/kefu/combined.html new file mode 100644 index 000000000..f2df6c8bf --- /dev/null +++ b/src/addon/aikefu/shop/view/kefu/combined.html @@ -0,0 +1,519 @@ + + +