|
@@ -41,7 +41,7 @@ class IntegralJob extends BaseJobs
|
|
// if ($give_static_integral > 0) {
|
|
// if ($give_static_integral > 0) {
|
|
$rate = sys_config('static_integral_rate', 3);
|
|
$rate = sys_config('static_integral_rate', 3);
|
|
$extract_sum = bcmul($award_price, $rate, 2);
|
|
$extract_sum = bcmul($award_price, $rate, 2);
|
|
- $mark = '购买商品,获得静态积分';
|
|
|
|
|
|
+ $mark = '购买商品,获得消费分';
|
|
$awardIntegralService->incIntegral($order['uid'], $integral_price, $give_static_integral, $total_price, 0, $extract_sum, $order['id'], $mark);
|
|
$awardIntegralService->incIntegral($order['uid'], $integral_price, $give_static_integral, $total_price, 0, $extract_sum, $order['id'], $mark);
|
|
// }
|
|
// }
|
|
//添加奖池
|
|
//添加奖池
|
|
@@ -130,7 +130,7 @@ class IntegralJob extends BaseJobs
|
|
$to_brokerage = bcdiv(bcmul($real_out, sys_config('extract_brokerage_ratio', 0)), 100, 2);
|
|
$to_brokerage = bcdiv(bcmul($real_out, sys_config('extract_brokerage_ratio', 0)), 100, 2);
|
|
$balance = bcadd($user['brokerage_price'], $to_brokerage, 2);
|
|
$balance = bcadd($user['brokerage_price'], $to_brokerage, 2);
|
|
$res = $res && $brokerageService->income('extract_integral', $info['uid'], [
|
|
$res = $res && $brokerageService->income('extract_integral', $info['uid'], [
|
|
- 'type' => $info['type'] ? '动态积分' : '静态积分',
|
|
|
|
|
|
+ 'type' => $info['type'] ? '贡献分' : '消费分',
|
|
'price' => round($price, 2),
|
|
'price' => round($price, 2),
|
|
'integral_num' => $info['num'],
|
|
'integral_num' => $info['num'],
|
|
'number' => floatval($to_brokerage),
|
|
'number' => floatval($to_brokerage),
|
|
@@ -142,7 +142,7 @@ class IntegralJob extends BaseJobs
|
|
$to_energy = bcsub($real_out, $to_brokerage, 2);
|
|
$to_energy = bcsub($real_out, $to_brokerage, 2);
|
|
$balance = bcadd($user['energy'], $to_energy, 2);
|
|
$balance = bcadd($user['energy'], $to_energy, 2);
|
|
$res = $res && $billService->income('extract_integral', $info['uid'], [
|
|
$res = $res && $billService->income('extract_integral', $info['uid'], [
|
|
- 'type' => $info['type'] ? '动态积分' : '静态积分',
|
|
|
|
|
|
+ 'type' => $info['type'] ? '贡献分' : '消费分',
|
|
'price' => round($price, 2),
|
|
'price' => round($price, 2),
|
|
'integral_num' => $info['num'],
|
|
'integral_num' => $info['num'],
|
|
'number' => floatval($to_energy),
|
|
'number' => floatval($to_energy),
|
|
@@ -187,7 +187,7 @@ class IntegralJob extends BaseJobs
|
|
$to_brokerage = bcdiv(bcmul($real_out, sys_config('extract_brokerage_ratio', 0)), 100, 2);
|
|
$to_brokerage = bcdiv(bcmul($real_out, sys_config('extract_brokerage_ratio', 0)), 100, 2);
|
|
$balance = bcadd($user['brokerage_price'], $to_brokerage, 2);
|
|
$balance = bcadd($user['brokerage_price'], $to_brokerage, 2);
|
|
$res = $res && $brokerageService->income('extract_integral', $info['uid'], [
|
|
$res = $res && $brokerageService->income('extract_integral', $info['uid'], [
|
|
- 'type' => $info['type'] ? '动态积分' : '静态积分',
|
|
|
|
|
|
+ 'type' => $info['type'] ? '贡献分' : '消费分',
|
|
'price' => round($price, 2),
|
|
'price' => round($price, 2),
|
|
'integral_num' => $info['num'],
|
|
'integral_num' => $info['num'],
|
|
'number' => floatval($to_brokerage),
|
|
'number' => floatval($to_brokerage),
|
|
@@ -199,7 +199,7 @@ class IntegralJob extends BaseJobs
|
|
$to_energy = bcsub($real_out, $to_brokerage, 2);
|
|
$to_energy = bcsub($real_out, $to_brokerage, 2);
|
|
$balance = bcadd($user['energy'], $to_energy, 2);
|
|
$balance = bcadd($user['energy'], $to_energy, 2);
|
|
$res = $res && $billService->income('extract_integral', $info['uid'], [
|
|
$res = $res && $billService->income('extract_integral', $info['uid'], [
|
|
- 'type' => $info['type'] ? '动态积分' : '静态积分',
|
|
|
|
|
|
+ 'type' => $info['type'] ? '贡献分' : '消费分',
|
|
'price' => round($price, 2),
|
|
'price' => round($price, 2),
|
|
'integral_num' => $info['num'],
|
|
'integral_num' => $info['num'],
|
|
'number' => floatval($to_energy),
|
|
'number' => floatval($to_energy),
|