BUG
This commit is contained in:
parent
cede6f3943
commit
0fba8ea690
@ -148,12 +148,12 @@ class UserVouchers extends Base{
|
||||
$data = Db::name('user_vouchers_summary')->whereOr(["helpSaleNum"=>["lt", 0]])->whereOr(["expectedProductNum"=>["lt", 0]])->select();
|
||||
foreach ($data as $_each){
|
||||
if($_each["expectedProductNum"]<0){
|
||||
$count = (float)$_each["expectedProductNum"];
|
||||
if($_each["helpSaleNum"] < 0)$count+=(float)$_each["helpSaleNum"];
|
||||
$count = abs((float)$_each["expectedProductNum"]);
|
||||
if($_each["helpSaleNum"] < 0)$count+=abs((float)$_each["helpSaleNum"]);
|
||||
model('common/UserVouchers')->insertVouchersNotice($_each["userId"], 0, 0, $count*((float)dataConf("deductionRateWhennegPreCoupons")/100),
|
||||
"预获优惠券日损耗所扣", 0);
|
||||
}else{
|
||||
$count = (float)$_each["helpSaleNum"];
|
||||
$count = abs((float)$_each["helpSaleNum"]);
|
||||
model('common/UserVouchers')->insertVouchersNotice($_each["userId"], 0, $count*((float)dataConf("deductionRateWhennegPreCoupons")/100),
|
||||
0, "预获产品券日损耗所扣", 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user