diff --git a/app/command/brand.php b/app/command/brand.php index ae9dfb0..f551b69 100644 --- a/app/command/brand.php +++ b/app/command/brand.php @@ -103,7 +103,7 @@ class brand extends Command ->update([ 'brand_integral' => 0, 'all_value' => 0, - 'brokerage_price' => $v['brokerage_price']+$growth_num + 'brokerage_price' => $v['']+$growth_num ]); Db::commit(); diff --git a/crmeb/jobs/OrderPartnerJob.php b/crmeb/jobs/OrderPartnerJob.php index e6740ab..58c482a 100644 --- a/crmeb/jobs/OrderPartnerJob.php +++ b/crmeb/jobs/OrderPartnerJob.php @@ -180,8 +180,8 @@ class OrderPartnerJob implements JobInterface ]; //直推贡献10% - if(!empty($data['spread_uid'])){ - $user_zt = User::getDB()->where('uid', $data['spread_uid'])->find(); + if(!empty($user->spread_uid2)){ + $user_zt = User::getDB()->where('uid', $user->spread_uid2)->find(); $zt_value = bcmul($total_price, 0.1, 2); $user_zt->all_value = bcadd($user_zt->all_value, $zt_value, 2); $user_zt->save(); @@ -191,7 +191,7 @@ class OrderPartnerJob implements JobInterface 'num' => $user_value, 'ctime' => date('Y-m-d H:i:s'), 'memo' => '订单直推消费贡献值', - 'user_id' => $data['spread_uid'], + 'user_id' => $user->spread_uid2, ]; }