|
|
@@ -1245,17 +1245,21 @@ class StoreOrderRepository extends BaseRepository
|
|
|
if ($type==5){
|
|
|
$oil = app()->make(OilLevel::class);
|
|
|
$oil->checkLevel($order['uid']);
|
|
|
- @file_put_contents('quanju2.txt', "-路径检查1\r\n", 8);
|
|
|
+
|
|
|
$ratio = systemConfig('energy_saving_oil_ratio', 10);
|
|
|
- $jackpot = bcmul($order['pay_price'], $ratio, 2);
|
|
|
+ @file_put_contents('quanju2.txt', $ratio."-路径检查12\r\n", 8);
|
|
|
+ $jackpot = bcmul($order['pay_price'], bcmul($ratio,0.01,2), 2);
|
|
|
+ @file_put_contents('quanju2.txt', $jackpot."-路径检查1\r\n", 8);
|
|
|
$awardLake->addOrderLakes(1,$jackpot,$order['order_id']);
|
|
|
@file_put_contents('quanju2.txt', "-路径检查3\r\n", 8);
|
|
|
}elseif ($type==6){
|
|
|
$gift = app()->make(GiftLevel::class);
|
|
|
$gift->checkLevel($order['uid']);
|
|
|
- @file_put_contents('quanju2.txt', "-路径检查2\r\n", 8);
|
|
|
+
|
|
|
$ratio = systemConfig('gift_pack_ratio', 10);
|
|
|
- $jackpot = bcmul($order['pay_price'], $ratio, 2);
|
|
|
+ @file_put_contents('quanju2.txt', $ratio."-路径检查22\r\n", 8);
|
|
|
+ $jackpot = bcmul($order['pay_price'], bcmul($ratio,0.01,2), 2);
|
|
|
+ @file_put_contents('quanju2.txt', $jackpot."-路径检查2\r\n", 8);
|
|
|
$awardLake->addOrderLakes(2,$jackpot,$order['order_id']);
|
|
|
@file_put_contents('quanju2.txt', "-路径检查4\r\n", 8);
|
|
|
}
|