...
|
...
|
@@ -112,9 +112,7 @@ class Index extends Api |
|
|
'Battery' => htmlspecialchars_decode($params['Battery']),
|
|
|
];
|
|
|
$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)->where(['user_id' => $UserId,
|
|
|
$StorID = Db::name('stor')->where(['user_id' => $UserId,
|
|
|
'createtime' => time(),
|
|
|
'updatetime' => time(),
|
|
|
'avatar' => $params['avatar'],
|
...
|
...
|
@@ -125,7 +123,9 @@ class Index extends Api |
|
|
'address_con' => $params['address_con'],
|
|
|
'mobile' => $params['mobile'],
|
|
|
'hours' => $params['hours'],
|
|
|
'Battery' => htmlspecialchars_decode($params['Battery']),])->update(['stor_image' => '/images/storID' . $StorID . '.png']);
|
|
|
'Battery' => htmlspecialchars_decode($params['Battery']),])->value('id');
|
|
|
$this->NameCarQrCode('storID' . $StorID, $params['url'] . '?stor_id=' . $StorID);
|
|
|
Db::name('stor')->where('user_id', $UserId)->where('id', $StorID)->update(['stor_image' => '/images/storID' . $StorID . '.png']);
|
|
|
} else {
|
|
|
$data = [
|
|
|
'updatetime' => time(),
|
...
|
...
|
|