From a34bebca1229f842901eeae5592a2523a5c51ff3 Mon Sep 17 00:00:00 2001 From: 王智 <wz@bronet.cn> Date: Sat, 31 Oct 2020 16:48:43 +0800 Subject: [PATCH] 修改 --- application/api/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/controller/Index.php b/application/api/controller/Index.php index 39079d7..dc74e58 100644 --- a/application/api/controller/Index.php +++ b/application/api/controller/Index.php @@ -114,7 +114,7 @@ class Index extends Api $Res = Db::name('stor')->insert($data); $StorID = Db::name('stor')->where('user_id', $UserId)->value('id'); $this->NameCarQrCode('storID' . $StorID, $params['url'] . '?stor_id=' . $StorID); - Db::name('stor')->where('user_id', $UserId)->update(['stor_image' => '/images/storID' . $StorID . '.png']); + Db::name('stor')->where('user_id', $UserId)->where('id', $StorID)->update(['stor_image' => '/images/storID' . $StorID . '.png']); } else { $data = [ 'updatetime' => time(), -- libgit2 0.24.0