作者 王智

修改

@@ -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(),