|
@@ -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);
|