修改本地生活编辑的字段

This commit is contained in:
wangxiaowei 2024-08-23 17:42:53 +08:00
parent cd7da8e36a
commit 52cb4545b7

@ -95,12 +95,6 @@ class LocalStore extends Api
->select()
->toArray();
foreach ($lists as &$v) {
if (!empty($v['shopLogo'])) {
$v['shopLogo'] = FileConfig::get('aliyunoss.domain') . 'local_life_shop/' . $v['shopLogo'];
}
}
$count = Db::name('local_store')
->where(['user_id' => $this->user_id, 'store_state' => 1])
->count();
@ -248,7 +242,7 @@ class LocalStore extends Api
if ($id && $header_image) {
$result = Db::name('local_store')
->where(['lstore_id' => $id, 'user_id' => $this->user_id])
->update(['shopLogo' => 'local_life_shop/' . basename($header_image), 'update_time' => date('Y-m-d H:i:s')]);
->update(['shopLogo' => 'local_life_shop/' . $header_image, 'update_time' => date('Y-m-d H:i:s')]);
}
if ($id && $store_name) {