Explorar o código

2023-5-22-1 新增服务区

yingzi %!s(int64=2) %!d(string=hai) anos
pai
achega
18c8444345
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      app/api/controller/User.php

+ 1 - 3
app/api/controller/User.php

@@ -412,9 +412,7 @@ class User extends BaseController
             return app('json')->fail("系统错误");
         }
         $exist = (new InfoAudit)->where('uid', $save['uid'])->find();
-        if ($exist && !empty($exist['no'])) {
-            $no = $exist['no'];
-        } else {
+        if (!$exist ||!$exist['no']) {
             $id = str_pad($r, 6, "0", STR_PAD_LEFT);
             $no = "MYJ" . date("Ymd") . $id;
             (new InfoAudit)->where("id", $r)->update(["no" => $no]);