限制现金支付相关处理和未核销数量
This commit is contained in:
parent
40aff5aeb3
commit
3f8e88bff1
@ -99,6 +99,10 @@ class UserLogic extends BaseLogic
|
||||
$data['return_money'] = Db::name('vip_flow')->
|
||||
where(['user_id'=>$uid,'status'=>0])
|
||||
->sum('number');
|
||||
//小程序 未核销的订单
|
||||
$data['no_writeoff'] = StoreOrder::where([
|
||||
'is_writeoff'=>0,'uid'=>$uid
|
||||
])->whereIn('shipping_type',[1,2])->count();
|
||||
|
||||
}else{
|
||||
$data = [];
|
||||
|
@ -119,6 +119,10 @@ class StoreOrderLogic extends BaseLogic
|
||||
$pay_price =bcsub(self::$pay_price, self::$activity_price, 2); //减去活动优惠金额
|
||||
$activity_string = '减免';
|
||||
}
|
||||
if($pay_type == 19){
|
||||
$pay_price = self::$pay_price;
|
||||
$activity_string = '';
|
||||
}
|
||||
|
||||
// if($pay_price < 500){
|
||||
// throw new \think\Exception('金额低于500');
|
||||
|
Loading…
x
Reference in New Issue
Block a user