Browse Source

no message

BF-202210271038\Administrator 2 years ago
parent
commit
252d986431
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Http/Controllers/Api/MemberController.php

+ 2 - 0
app/Http/Controllers/Api/MemberController.php

@@ -9,6 +9,7 @@ use App\Jobs\BarrageJob;
 use App\Jobs\MemberShareJob;
 use App\Jobs\SaveImGroup;
 use App\Models\Comment;
+use App\Models\Contract;
 use App\Models\Express;
 use App\Models\Goods;
 use App\Models\GoodsBrowse;
@@ -224,6 +225,7 @@ class MemberController extends FrontController
             $teamIds=MemberClan::where('m_id',$member->{'id'})->value('m_ids');
             $teamIds=array_filter(explode(',',$teamIds));
             $member->{'teamNum'}=count($teamIds);
+            $member->{'orderNum'}=Contract::where('m_id',$member->{'id'})->whereIn('status',[2,4])->count();
             RedisDataServer::creatServer()->setData('member_' . $m_id, $member, 'json', 30);
         }
         return $this->apiResponseSuccess('获取信息成功', $member);