更新
This commit is contained in:
parent
312456ac18
commit
c54ccb4ac2
@ -198,6 +198,16 @@ class OrderLogic extends BaseLogic
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$_order = $orderInfo['order'];
|
$_order = $orderInfo['order'];
|
||||||
|
$where=[
|
||||||
|
'merchant'=>$mer_id,
|
||||||
|
'order_arr'=>$_order['order_arr'],
|
||||||
|
'cart_id'=>$_order['cart_id'],
|
||||||
|
];
|
||||||
|
$find=Opurchaseclass::where($where)->find();
|
||||||
|
if($find){
|
||||||
|
self::setError('订单已存在,不能重复提交');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// if ($_order['total'] < $merchant['mer_money']) {
|
// if ($_order['total'] < $merchant['mer_money']) {
|
||||||
// self::setError('商户余额不足');
|
// self::setError('商户余额不足');
|
||||||
// return false;
|
// return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user