yingzi 2 years ago
parent
commit
f73a8209b5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/system/controller/Audit.php

+ 3 - 0
app/system/controller/Audit.php

@@ -118,9 +118,12 @@ class Audit extends BaseController
                     'admin_time'        => time(),
                     'admin_id'          => $request->adminInfo['id'],
                 ]);
+            //更新职称
             (new UserModel)->where("uid",$certData["uid"])->update(["work_type_id"=>$certData["user_work_type_id"]]);
             //绑定初始化模板
             (new UserShowTemplate)->userBindTempInit($certData["uid"]);
+            //删除以前的资料
+            (new InfoAudit)->where('uid', $certData['uid'])->where("id","<>",$certData["id"])->delete();
             return app('json')->success('操作成功');
         }
         //审核驳回