yingzi 2 年之前
父節點
當前提交
8d6fead46b
共有 1 個文件被更改,包括 2 次插入0 次删除
  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('操作成功');
         }
         //审核驳回