From dde922c0eb7522033b9f8582bcc1d716de845351 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Fri, 5 Apr 2024 19:38:04 +0800 Subject: [PATCH] 1 --- app/api/model/wholesaler/Apply.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/model/wholesaler/Apply.php b/app/api/model/wholesaler/Apply.php index 83037f27..aae5aa61 100644 --- a/app/api/model/wholesaler/Apply.php +++ b/app/api/model/wholesaler/Apply.php @@ -59,7 +59,7 @@ class Apply extends \app\common\model\wholesaler\Apply throwError('申请已通过无法编辑'); } $userId = UserService::getCurrentLoginUserId(); - if ($this->where(['user_id' => $userId])->update($data)) { + if ($this->save($data, ['user_id' => $userId]) !== false) { return true; } return false;