更新关注统计
This commit is contained in:
parent
bd85e22085
commit
d677451d36
@ -21,6 +21,7 @@ use app\common\repositories\user\UserRepository;
|
||||
use app\common\repositories\user\UserSignRepository;
|
||||
use app\common\repositories\wechat\RoutineQrcodeRepository;
|
||||
use app\common\repositories\wechat\WechatUserRepository;
|
||||
use app\common\repositories\system\RelevanceRepository;
|
||||
use app\validate\api\ChangePasswordValidate;
|
||||
use app\validate\api\UserAuthValidate;
|
||||
use crmeb\basic\BaseController;
|
||||
@ -213,6 +214,9 @@ class Auth extends BaseController
|
||||
}
|
||||
$data['mer_info'] = $mer_arr;
|
||||
}
|
||||
$data['fan_num'] = app()->make(RelevanceRepository::class)->getUserFans($user->uid, 1, 1, 1);
|
||||
$data['focus_num'] = app()->make(RelevanceRepository::class)->getUserFocus($user->uid, 1, 1, 1);
|
||||
$data['community_num'] = Db::name('community')->where('uid', $user->uid)->whereIn('is_type', '1,2')->count();
|
||||
return app('json')->success($data);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user