getConfig(); return $this->data($result); } /** * @notes 设置小程序配置 * @return \think\response\Json */ public function setConfig() { $params = (new MnpSettingsValidate())->post()->goCheck(); (new MnpSettingsLogic())->setConfig($params); return $this->success('操作成功', [], 1, 1); } //工程师端微信小程序 /** * @notes 获取小程序配置 * @return \think\response\Json */ public function getWorkerConfig() { $result = (new MnpSettingsLogic())->getWorkerConfig(); return $this->data($result); } /** * @notes 设置小程序配置 * @return \think\response\Json */ public function setWorkerConfig() { $params = (new MnpSettingsValidate())->post()->goCheck(); (new MnpSettingsLogic())->setWorkerConfig($params); return $this->success('操作成功', [], 1, 1); } }