作者 王智

修改

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