|
|
@@ -43,7 +43,7 @@ class ProductWelfareRede extends Model
|
|
|
|
|
|
|
|
|
//发放推广奖励
|
|
|
- public static function sendPromotionReward(int $user_id, array $product_ids, int $product_num, $bonus, int $promotion_one, int $promotion_two, int $promotion_thre){
|
|
|
+ public static function sendPromotionReward(int $user_id, array $product_ids, int $product_num, $bonus, int $promotion_one, int $promotion_two, int $promotion_three){
|
|
|
|
|
|
$pathId = UserPathModel::where('user_id', $user_id)->order('distance', 'asc')->limit(3)->column('parent_id');
|
|
|
$ledgerWalletModel = new LedgerWalletModel();
|
|
|
@@ -55,7 +55,7 @@ class ProductWelfareRede extends Model
|
|
|
$ratio = $promotion_two;
|
|
|
break;
|
|
|
case 2:
|
|
|
- $ratio = $promotion_thre;
|
|
|
+ $ratio = $promotion_three;
|
|
|
break;
|
|
|
default:
|
|
|
$ratio = $promotion_one;
|