Explorar el Código

周一分红调整

sunxbiao hace 1 año
padre
commit
ed28e7e410

+ 1 - 12
app/controller/api/store/merchant/TaskPartnerProfits.php

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

+ 1 - 19
app/controller/api/store/merchant/Taskorderguquan.php

@@ -883,22 +883,6 @@ class Taskorderguquan
883
 
883
 
884
                 $yj_90 = $v['getcomm'] * 0.9;
884
                 $yj_90 = $v['getcomm'] * 0.9;
885
                 $fg_10 = $v['getcomm'] * 0.1;
885
                 $fg_10 = $v['getcomm'] * 0.1;
886
-                if ($v['user_id'] == 272) {
887
-                    $yj_90 = 10.02;
888
-                    $yj_90 = bcsub($yj_90, 2.51,2);
889
-                    $fg_10 = 1.13;
890
-                    $fg_10 = bcsub($fg_10, 0.3,2);
891
-                } else if ($v['user_id'] == 303) {
892
-                    $yj_90 = 61.18;
893
-                    $yj_90 = bcsub($yj_90, 16.1,2);
894
-                    $fg_10 = 6.80;
895
-                    $fg_10 = bcsub($fg_10, 1.8,2);
896
-                } else if ($v['user_id'] == 558) {
897
-                    $yj_90 = 0.00;
898
-                    // $yj_90 = bcsub($yj_90, 7.49,2);
899
-                    $fg_10 = 0.00;
900
-                    // $fg_10 = bcsub($fg_10, 0.3,2);
901
-                }
902
 
886
 
903
                 if ($isTest == 0) {
887
                 if ($isTest == 0) {
904
                     // // 更新 user_stock 表中的记录
888
                     // // 更新 user_stock 表中的记录
@@ -910,9 +894,7 @@ class Taskorderguquan
910
 
894
 
911
                     $res1 = Db::name("user")->where("uid", $v['user_id'])->inc("total_amount_old", $yj_90)->save();
895
                     $res1 = Db::name("user")->where("uid", $v['user_id'])->inc("total_amount_old", $yj_90)->save();
912
                     $res2 = Db::name("user")->where("uid", $v['user_id'])->inc("amount_old", $yj_90)->save();
896
                     $res2 = Db::name("user")->where("uid", $v['user_id'])->inc("amount_old", $yj_90)->save();
913
-                    if ($v['user_id'] != 272 && $v['user_id'] != 303 && $v['user_id'] != 558) {
914
-                        Db::name("user")->where("uid", $v['user_id'])->inc("brokerage_price", $yj_90)->save();
915
-                    }
897
+                    Db::name("user")->where("uid", $v['user_id'])->inc("brokerage_price", $yj_90)->save();
916
                     $res3 = Db::name("user")->where("uid", $v['user_id'])->inc("fugou", $fg_10)->save();
898
                     $res3 = Db::name("user")->where("uid", $v['user_id'])->inc("fugou", $fg_10)->save();
917
 
899
 
918
                     $res = true;
900
                     $res = true;

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

@@ -396,7 +396,6 @@ class Taskorderlianc
396
         }
396
         }
397
 
397
 
398
         $originator_award = round(($weekRecord * 0.05), 2);
398
         $originator_award = round(($weekRecord * 0.05), 2);
399
-        $originator_award = bcsub($originator_award, 95.53, 2);
400
 
399
 
401
         // foreach($list as $k=>$v){
400
         // foreach($list as $k=>$v){
402
         //     var_dump($v);
401
         //     var_dump($v);
@@ -461,18 +460,13 @@ class Taskorderlianc
461
             foreach ($value['people'] as $k => $v) {
460
             foreach ($value['people'] as $k => $v) {
462
                 # code...
461
                 # code...
463
                 $award = $value['people_award'];
462
                 $award = $value['people_award'];
464
-                if ($v == 303) {
465
-                    $award = bcsub($award, 34.14, 2);
466
-                }
467
                 //90给佣金,10给复购金
463
                 //90给佣金,10给复购金
468
                 $yj_90 = $award * 0.9;
464
                 $yj_90 = $award * 0.9;
469
                 $fg_10 = $award * 0.1;
465
                 $fg_10 = $award * 0.1;
470
                 if ($isTest == 0) {
466
                 if ($isTest == 0) {
471
                     $res = Db::name("user")->where("uid", $v)->inc("total_amount_old", $yj_90)->save();
467
                     $res = Db::name("user")->where("uid", $v)->inc("total_amount_old", $yj_90)->save();
472
                     Db::name("user")->where("uid", $v)->inc("amount_old", $yj_90)->save();//不用冻结金额和提现额度来限制佣金发放
468
                     Db::name("user")->where("uid", $v)->inc("amount_old", $yj_90)->save();//不用冻结金额和提现额度来限制佣金发放
473
-                    if ($v != 303) {
474
-                        Db::name("user")->where("uid", $v)->inc("brokerage_price", $yj_90)->save();
475
-                    }
469
+                    Db::name("user")->where("uid", $v)->inc("brokerage_price", $yj_90)->save();
476
                     $res3 = Db::name("user")->where("uid", $v)->inc("fugou", $fg_10)->save();
470
                     $res3 = Db::name("user")->where("uid", $v)->inc("fugou", $fg_10)->save();
477
 
471
 
478
                     $res = true;
472
                     $res = true;