From 8dc6834e0030cf464c94f7d91bff358a69037c8d Mon Sep 17 00:00:00 2001 From: limu <610543851@qq.com> Date: Mon, 29 Jan 2024 22:04:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A8=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/command/brand.php | 2 +- crmeb/jobs/OrderPartnerJob.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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, ]; }