sunxbiao 1 год назад
Родитель
Сommit
c62fe7f4f1

+ 11 - 2
app/controller/api/store/merchant/TaskPartnerProfits.php

@@ -322,9 +322,17 @@ class TaskPartnerProfits
322
                 # code...
322
                 # code...
323
                 $allAward = $myWeightMoney + $myMixMoney;
323
                 $allAward = $myWeightMoney + $myMixMoney;
324
 
324
 
325
+
325
                 //90%给佣金,10给复购金
326
                 //90%给佣金,10给复购金
326
                 $yj_90 = floor($allAward * 0.9 * 100) / 100;
327
                 $yj_90 = floor($allAward * 0.9 * 100) / 100;
327
                 $fg_10 = floor($allAward * 0.1 * 100) / 100;
328
                 $fg_10 = floor($allAward * 0.1 * 100) / 100;
329
+                if ($v == 272) {
330
+                    $yj_90 = 462.68;
331
+                    $fg_10 = 51.40;
332
+                } else if ($v == 303) {
333
+                    $yj_90 = 163.74;
334
+                    $fg_10 = 18.19;
335
+                }
328
 
336
 
329
                 //                $yj_90 = bcsub($yj_90, $user_bill_uid_list[$v]['number'] ?? 0.00, 2);
337
                 //                $yj_90 = bcsub($yj_90, $user_bill_uid_list[$v]['number'] ?? 0.00, 2);
330
                 //
338
                 //
@@ -349,8 +357,9 @@ class TaskPartnerProfits
349
                     $res = Db::name("user")->where("uid", $v)->inc("total_amount_old", $yj_90)->save();
357
                     $res = Db::name("user")->where("uid", $v)->inc("total_amount_old", $yj_90)->save();
350
 
358
 
351
                     Db::name("user")->where("uid", $v)->inc("amount_old", $yj_90)->save();//不用冻结金额和提现额度来限制佣金发放
359
                     Db::name("user")->where("uid", $v)->inc("amount_old", $yj_90)->save();//不用冻结金额和提现额度来限制佣金发放
352
-                    Db::name("user")->where("uid", $v)->inc("brokerage_price", $yj_90)->save();
353
-
360
+                    if ($v != 272 && $v != 303) {
361
+                        Db::name("user")->where("uid", $v)->inc("brokerage_price", $yj_90)->save();
362
+                    }
354
                     Db::name("user")->where("uid", $v)->inc("fugou", $fg_10)->save();
363
                     Db::name("user")->where("uid", $v)->inc("fugou", $fg_10)->save();
355
 
364
 
356
 
365
 

+ 14 - 2
app/controller/api/store/merchant/Taskorderguquan.php

@@ -888,6 +888,17 @@ class Taskorderguquan
888
 
888
 
889
                 $yj_90 = $v['getcomm'] * 0.9;
889
                 $yj_90 = $v['getcomm'] * 0.9;
890
                 $fg_10 = $v['getcomm'] * 0.1;
890
                 $fg_10 = $v['getcomm'] * 0.1;
891
+                if ($v['user_id'] == 272) {
892
+                    $yj_90 = 10.02;
893
+                    $fg_10 = 1.13;
894
+                } else if ($v['user_id'] == 303) {
895
+                    $yj_90 = 61.18;
896
+                    $fg_10 = 6.80;
897
+                } else if ($v['user_id'] == 558) {
898
+                    $yj_90 = 15.00;
899
+                    $fg_10 = 1.13;
900
+                }
901
+
891
                 if ($isTest == 0) {
902
                 if ($isTest == 0) {
892
                     // // 更新 user_stock 表中的记录
903
                     // // 更新 user_stock 表中的记录
893
                     $res = db::name("old_user_stock")->where("id", $v['id'])->update([
904
                     $res = db::name("old_user_stock")->where("id", $v['id'])->update([
@@ -896,10 +907,11 @@ class Taskorderguquan
896
                         'update_time' => $v['update_time']
907
                         'update_time' => $v['update_time']
897
                     ]);
908
                     ]);
898
 
909
 
899
-                    Db::name("user")->where("uid", $v['user_id'])->inc("brokerage_price", $yj_90)->save();
900
                     $res1 = Db::name("user")->where("uid", $v['user_id'])->inc("total_amount_old", $yj_90)->save();
910
                     $res1 = Db::name("user")->where("uid", $v['user_id'])->inc("total_amount_old", $yj_90)->save();
901
                     $res2 = Db::name("user")->where("uid", $v['user_id'])->inc("amount_old", $yj_90)->save();
911
                     $res2 = Db::name("user")->where("uid", $v['user_id'])->inc("amount_old", $yj_90)->save();
902
-
912
+                    if ($v['user_id'] != 272 && $v['user_id'] != 303 && $v['user_id'] != 558) {
913
+                        Db::name("user")->where("uid", $v['user_id'])->inc("brokerage_price", $yj_90)->save();
914
+                    }
903
                     $res3 = Db::name("user")->where("uid", $v['user_id'])->inc("fugou", $fg_10)->save();
915
                     $res3 = Db::name("user")->where("uid", $v['user_id'])->inc("fugou", $fg_10)->save();
904
 
916
 
905
                     $res = true;
917
                     $res = true;

+ 7 - 1
app/controller/api/store/merchant/Taskorderlianc.php

@@ -464,10 +464,16 @@ class Taskorderlianc
464
                 //90给佣金,10给复购金
464
                 //90给佣金,10给复购金
465
                 $yj_90 = $award * 0.9;
465
                 $yj_90 = $award * 0.9;
466
                 $fg_10 = $award * 0.1;
466
                 $fg_10 = $award * 0.1;
467
+                if ($v == 303) {
468
+                    $yj_90 = 116.69;
469
+                    $fg_10 = 12.97;
470
+                }
467
                 if ($isTest == 0) {
471
                 if ($isTest == 0) {
468
-                    Db::name("user")->where("uid", $v)->inc("brokerage_price", $yj_90)->save();
469
                     $res = Db::name("user")->where("uid", $v)->inc("total_amount_old", $yj_90)->save();
472
                     $res = Db::name("user")->where("uid", $v)->inc("total_amount_old", $yj_90)->save();
470
                     Db::name("user")->where("uid", $v)->inc("amount_old", $yj_90)->save();//不用冻结金额和提现额度来限制佣金发放
473
                     Db::name("user")->where("uid", $v)->inc("amount_old", $yj_90)->save();//不用冻结金额和提现额度来限制佣金发放
474
+                    if ($v != 303) {
475
+                        Db::name("user")->where("uid", $v)->inc("brokerage_price", $yj_90)->save();
476
+                    }
471
                     $res3 = Db::name("user")->where("uid", $v)->inc("fugou", $fg_10)->save();
477
                     $res3 = Db::name("user")->where("uid", $v)->inc("fugou", $fg_10)->save();
472
 
478
 
473
                     $res = true;
479
                     $res = true;