This commit is contained in:
2026-03-27 14:10:24 +08:00
parent b0c1a36a8e
commit 7ea34ef84e

View File

@@ -237,9 +237,11 @@ class Events
base::gateway_query('sendToUid', [$s_id, json_encode($snd_data)]); base::gateway_query('sendToUid', [$s_id, json_encode($snd_data)]);
return; return;
} }
$product = Db::query(" if(!empty($message['product_id'])) {
SELECT * FROM `tb_product` WHERE $product = Db::query("
`id`={$message['product_id']}"); SELECT * FROM `tb_product` WHERE
`id`={$message['product_id']}");
}
// 如果是新增或者编辑,查询库存够不够 // 如果是新增或者编辑,查询库存够不够
if ( if (
(!empty($message['operate_type']) && ($message['operate_type'] == 'add' || $message['operate_type'] == 'edit')) && (!empty($message['operate_type']) && ($message['operate_type'] == 'add' || $message['operate_type'] == 'edit')) &&