소스 검색

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

hefei 1 년 전
부모
커밋
a1d5a899ed
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  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
         $member_id = $this->request->uid();
1178
         $member_id = $this->request->uid();
1179
 
1179
 
1180
         [$page, $limit] = $this->getPage();
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
         if ($this->source == 'yhc' && $this->merId) {
1182
         if ($this->source == 'yhc' && $this->merId) {
1183
             $where['mer_id'] = $this->merId;
1183
             $where['mer_id'] = $this->merId;
1184
         }
1184
         }
@@ -1197,6 +1197,11 @@ class User extends BaseController
1197
         if ($source > -1) {
1197
         if ($source > -1) {
1198
             $where['source'] = $source;
1198
             $where['source'] = $source;
1199
         }
1199
         }
1200
+        if($source == 1) {
1201
+            $where['type_shop'] = 10;
1202
+        }else{
1203
+            $where['type_shop'] = 0;
1204
+        }
1200
         $res = $this->repository->yanglaolog($where, $page, $limit, $month,1);
1205
         $res = $this->repository->yanglaolog($where, $page, $limit, $month,1);
1201
         if ($res) {
1206
         if ($res) {
1202
             $res['list'] = $res['list']->toArray();
1207
             $res['list'] = $res['list']->toArray();
@@ -2769,7 +2774,7 @@ class User extends BaseController
2769
             'num' => count($offLine),
2774
             'num' => count($offLine),
2770
             'yanglao' => round($this->num($offLine, 'yanglao'), 2)
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
         if($this->source=='yhc' && $this->merId){
2778
         if($this->source=='yhc' && $this->merId){
2774
             $offLinewhere['mer_id']=$this->merId;
2779
             $offLinewhere['mer_id']=$this->merId;
2775
         }
2780
         }