|
|
@@ -905,7 +905,7 @@ class StoreOrder extends BaseModel
|
|
|
if ($level) {
|
|
|
$ratio = bcmul($level[$field],0.01,2); //奖励比例
|
|
|
@file_put_contents('quanju.txt', $ratio . "-当前等级比例\r\n", 8);
|
|
|
- $award_price = bcmul($order['pay_price'], $ratio, 2); //奖励金额
|
|
|
+ $award_price = bcmul($order['total_price'], $ratio, 2); //奖励金额
|
|
|
@file_put_contents('quanju.txt', $award_price . "-当前等级分到的总金额\r\n", 8);
|
|
|
$user_award = bcdiv($award_price,$v,2); //每个用户奖励金额
|
|
|
@file_put_contents('quanju.txt', $user_award . "-当前等级分到的个人金额\r\n", 8);
|