فهرست منبع

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

yingzi 2 سال پیش
والد
کامیت
18c8444345
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  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]);