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