库存
This commit is contained in:
@@ -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')) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user