Просмотр исходного кода

Merge branch 'master' into dev

sunxbiao месяцев назад: 9
Родитель
Сommit
1b8e207ebf
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      app/controller/admin/user/User.php

+ 2 - 1
app/controller/admin/user/User.php

@@ -1067,6 +1067,7 @@ class User extends BaseController
1067 1067
         $data['ylj']=$ylj?$ylj:0;
1068 1068
         $revenue = Db::name("user_bill")
1069 1069
             ->where(["uid" => $id, "type" => "commission"])
1070
+            ->whereNotIn('commission_type', [0, 5, 7, 17, 19])
1070 1071
             ->whereIn('status', [1])
1071 1072
             ->sum('number');
1072 1073
         $data['revenue']=$revenue?$revenue:0;
@@ -1112,7 +1113,7 @@ class User extends BaseController
1112 1113
 //            'now_money' => $this->request->param('type', 0),
1113 1114
             'status' => $this->request->param('status'),
1114 1115
 //            'mer_id' => $this->request->merId()
1115
-            'not_commission_type' => [5, 7, 17, 19],
1116
+            'not_commission_type' => [0, 5, 7, 17, 19],
1116 1117
         ];
1117 1118
         if ($this->request->param('is_red') == true) {
1118 1119
             $where['is_red_brokerage'] = 1;