getConfig(); return $this->data($result); } /** * @notes 设置小程序配置 * @return \think\response\Json * @author ljj * @date 2022/2/16 9:51 上午 */ public function setConfig() { $params = (new MnpSettingsValidate())->post()->goCheck(); (new MnpSettingsLogic())->setConfig($params); return $this->success('操作成功', [], 1, 1); } /** * @notes 获取小程序配置 * @return \think\response\Json * @author ljj * @date 2022/2/16 9:38 上午 */ public function getCoachConfig() { $result = (new MnpSettingsLogic())->getCoachConfig(); return $this->data($result); } /** * @notes 设置小程序配置 * @return \think\response\Json * @author ljj * @date 2022/2/16 9:51 上午 */ public function setCoachConfig() { $params = (new MnpSettingsValidate())->post()->goCheck(); (new MnpSettingsLogic())->setCoachConfig($params); return $this->success('操作成功', [], 1, 1); } /** * @notes 获取小程序配置 * @return \think\response\Json * @author ljj * @date 2022/2/16 9:38 上午 */ public function getShopConfig() { $result = (new MnpSettingsLogic())->getShopConfig(); return $this->data($result); } /** * @notes 设置小程序配置 * @return \think\response\Json * @author ljj * @date 2022/2/16 9:51 上午 */ public function setShopConfig() { $params = (new MnpSettingsValidate())->post()->goCheck(); (new MnpSettingsLogic())->setShopConfig($params); return $this->success('操作成功', [], 1, 1); } }