|
|
@@ -16,6 +16,7 @@ namespace app\api\controller;
|
|
|
|
|
|
|
|
|
use app\api\logic\IndexLogic;
|
|
|
+use app\common\model\dict\DictData;
|
|
|
use think\response\Json;
|
|
|
|
|
|
|
|
|
@@ -28,7 +29,7 @@ class IndexController extends BaseApiController
|
|
|
{
|
|
|
|
|
|
|
|
|
- public array $notNeedLogin = ['index', 'config', 'policy', 'decorate'];
|
|
|
+ public array $notNeedLogin = ['index', 'config', 'policy', 'decorate','customerPhone'];
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -62,6 +63,16 @@ class IndexController extends BaseApiController
|
|
|
return $this->data($result);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 客服电话
|
|
|
+ * @return \think\response\Json
|
|
|
+ */
|
|
|
+ public function customerPhone()
|
|
|
+ {
|
|
|
+ $result = DictData::where(['type_value' => 'customer_support'])->column('value', 'name');
|
|
|
+ return $this->data($result);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* @notes 政策协议
|