getShopConfig(); return $this->data($config); } /** * @notes 设置店铺配置 * @return \think\response\Json * @author cjhao * @date 2023/2/16 14:38 */ public function setShopConfig() { $params = (new ShopSettingsValidate())->post()->goCheck(); (new SettingLogic())->setShopConfig($params); return $this->success('设置成功'); } /** * @notes 设置用户信息 * @return \think\response\Json * @author cjhao * @date 2023/2/16 14:45 */ public function getAdminInfo() { $info = (new SettingLogic())->getAdminInfo($this->adminId); return $this->data($info); } /** * @notes 修改管理员密码 * @return \think\response\Json * @author cjhao * @date 2022/4/21 15:16 * */ public function resetPassword(){ $params = (new ResetPasswordValidate())->post()->goCheck(null,['admin_id'=>$this->adminId]); $result = (new SettingLogic())->resetPassword($params,$this->adminId); if(true === $result){ return $this->success('密码修改成功',[],1,1); } return $this->fail($result); } }