|
|
|
@ -33,7 +33,7 @@ use app\common\model\store\order\StoreOrderLevel; |
|
|
|
|
class OrderPartnerJob implements JobInterface |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
public function fire($job,$data) |
|
|
|
|
public function fire($job, $data) |
|
|
|
|
{ |
|
|
|
|
$job->delete(); |
|
|
|
|
file_put_contents('/tmp/debug_partner', '开始处理贡献值订单:' . var_export($data, 1), 8); |
|
|
|
@ -155,7 +155,6 @@ class OrderPartnerJob implements JobInterface |
|
|
|
|
} |
|
|
|
|
//订单角色贡献值-30% |
|
|
|
|
$user_value = bcmul($total_price, 0.3, 2); |
|
|
|
|
if ($user_value > 0) { |
|
|
|
|
$user = User::getDB()->where('uid', $data['uid'])->find(); |
|
|
|
|
$user->all_value = bcadd($user->all_value, $user_value, 2); |
|
|
|
|
//增加生命值 |
|
|
|
@ -171,7 +170,6 @@ class OrderPartnerJob implements JobInterface |
|
|
|
|
'memo' => '订单消费贡献值', |
|
|
|
|
'user_id' => $data['uid'], |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//处理合作人角色是否包含此商品品牌 |
|
|
|
|