添加更新条件
This commit is contained in:
parent
47aac6e225
commit
9c89e6aa7c
@ -194,6 +194,7 @@ class LocalStoreGoodsLogic extends Logic
|
||||
if ($form['type'] == LocalStoreGoodsEnum::SHELVES || $form['type'] == LocalStoreGoodsEnum::STATUS_SOLD_OUT) {
|
||||
$result = LocalStoreGoods::where(['id' => $form['id'], 'user_id' => $user_id, 'lstore_id' => $form['lstore_id']])->update([
|
||||
'state' => $form['type'],
|
||||
'update_time' => time()
|
||||
]);
|
||||
|
||||
if ($result) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user