添加更新条件

This commit is contained in:
wangxiaowei 2024-08-28 09:32:01 +08:00
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) {