Explorar el Código

修复线下订单养老金不展示问题

hefei hace 1 año
padre
commit
a1d5a899ed
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. 7 2
      app/controller/api/user/User.php

+ 7 - 2
app/controller/api/user/User.php

@@ -1178,7 +1178,7 @@ class User extends BaseController
1178 1178
         $member_id = $this->request->uid();
1179 1179
 
1180 1180
         [$page, $limit] = $this->getPage();
1181
-        $where = ["uid" => $member_id, "type" => "commission", "commission_type" => 5, "type_shop" => 0];
1181
+        $where = ["uid" => $member_id, "type" => "commission", "commission_type" => 5];
1182 1182
         if ($this->source == 'yhc' && $this->merId) {
1183 1183
             $where['mer_id'] = $this->merId;
1184 1184
         }
@@ -1197,6 +1197,11 @@ class User extends BaseController
1197 1197
         if ($source > -1) {
1198 1198
             $where['source'] = $source;
1199 1199
         }
1200
+        if($source == 1) {
1201
+            $where['type_shop'] = 10;
1202
+        }else{
1203
+            $where['type_shop'] = 0;
1204
+        }
1200 1205
         $res = $this->repository->yanglaolog($where, $page, $limit, $month,1);
1201 1206
         if ($res) {
1202 1207
             $res['list'] = $res['list']->toArray();
@@ -2769,7 +2774,7 @@ class User extends BaseController
2769 2774
             'num' => count($offLine),
2770 2775
             'yanglao' => round($this->num($offLine, 'yanglao'), 2)
2771 2776
         );
2772
-        $offLinewhere=['uid'=>$uid,'status'=>'1','commission_type' => '5','source'=>1,'type_shop'=>0];
2777
+        $offLinewhere=['uid'=>$uid,'status'=>'1','commission_type' => '5','source'=>1,'type_shop'=>10];
2773 2778
         if($this->source=='yhc' && $this->merId){
2774 2779
             $offLinewhere['mer_id']=$this->merId;
2775 2780
         }