正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -114,7 +114,7 @@ class Index extends Api | @@ -114,7 +114,7 @@ class Index extends Api | ||
114 | $Res = Db::name('stor')->insert($data); | 114 | $Res = Db::name('stor')->insert($data); |
115 | $StorID = Db::name('stor')->where('user_id', $UserId)->value('id'); | 115 | $StorID = Db::name('stor')->where('user_id', $UserId)->value('id'); |
116 | $this->NameCarQrCode('storID' . $StorID, $params['url'] . '?stor_id=' . $StorID); | 116 | $this->NameCarQrCode('storID' . $StorID, $params['url'] . '?stor_id=' . $StorID); |
117 | - Db::name('stor')->where('user_id', $UserId)->update(['stor_image' => '/images/storID' . $StorID . '.png']); | 117 | + Db::name('stor')->where('user_id', $UserId)->where('id', $StorID)->update(['stor_image' => '/images/storID' . $StorID . '.png']); |
118 | } else { | 118 | } else { |
119 | $data = [ | 119 | $data = [ |
120 | 'updatetime' => time(), | 120 | 'updatetime' => time(), |
-
请 注册 或 登录 后发表评论