adminId); return $this->data($result); } /** * @notes 设置个人资料 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author ljj * @date 2022/4/18 2:58 下午 */ public function setAdmin() { $params = (new AdminValidate())->post()->goCheck('setAdmin',['admin_id'=>$this->adminId]); AdminLogic::setAdmin($params); return $this->success('操作成功',[],1,1); } }