修改本地生活编辑的字段
This commit is contained in:
parent
1a813e6fa2
commit
d8955a3d70
@ -248,13 +248,13 @@ class LocalStore extends Api
|
||||
if ($id && $header_image) {
|
||||
$result = Db::name('local_store')
|
||||
->where(['lstore_id' => $id, 'user_id' => $this->user_id])
|
||||
->update(['header_image' => 'local_life_shop/' . basename($header_image), 'update_time' => date('Y-m-d H:i:s')]);
|
||||
->update(['shopLogo' => 'local_life_shop/' . basename($header_image), 'update_time' => date('Y-m-d H:i:s')]);
|
||||
}
|
||||
|
||||
if ($id && $store_name) {
|
||||
$result = Db::name('local_store')
|
||||
->where(['lstore_id' => $id, 'user_id' => $this->user_id])
|
||||
->update(['store_nickname' => $store_name, 'update_time' => date('Y-m-d H:i:s')]);
|
||||
->update(['shopName' => $store_name, 'update_time' => date('Y-m-d H:i:s')]);
|
||||
}
|
||||
|
||||
if ($result) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user