更新
This commit is contained in:
parent
bd7326e35f
commit
fb2f2c6a86
@ -486,20 +486,20 @@ class StoreOrderCreateRepository extends StoreOrderRepository
|
||||
$platformConsumption=[];
|
||||
$consumption=[];
|
||||
//消费金
|
||||
// if ($source == 103) {
|
||||
// $ConsumptionWhere = [
|
||||
// 'uid' => $uid,
|
||||
// 'start_time' => date('Y-m-d H:i:s'),
|
||||
// 'status' => 0,
|
||||
// 'is_fail' => 0
|
||||
// ];
|
||||
// $platformConsumption = Db::name('store_consumption_user')->where($ConsumptionWhere)->limit(100)->order('create_time', 'desc')
|
||||
// ->filed('uid,coupon_title,coupon_price')
|
||||
// ->select();
|
||||
// if($platformConsumption){
|
||||
// $consumption=$platformConsumption[0];
|
||||
// }
|
||||
// }
|
||||
if ($source == 103) {
|
||||
$ConsumptionWhere = [
|
||||
'uid' => $uid,
|
||||
'start_time' => date('Y-m-d H:i:s'),
|
||||
'status' => 0,
|
||||
'is_fail' => 0
|
||||
];
|
||||
$platformConsumption = Db::name('store_consumption_user')->where($ConsumptionWhere)->limit(100)->order('create_time', 'desc')
|
||||
->filed('uid,coupon_title,coupon_price')
|
||||
->select();
|
||||
if($platformConsumption){
|
||||
$consumption=$platformConsumption[0];
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
$usePlatformCouponId = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user