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

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

@@ -228,6 +228,8 @@ class Audit extends BaseController
                     'admin_time' => time(),
                     'admin_id'   => $request->adminInfo['id'],
                 ]);
+            //删除以前的资料
+            (new TypeAudit)->where('uid', $certData['uid'])->where("id","<>",$certData["id"])->delete();
             return app('json')->success('操作成功');
         }
         //审核驳回