|
|
@@ -97,19 +97,13 @@ class MemberService extends BaseService
|
|
|
$info['avatar'] = $info['avatar'] ? get_image_url($info['avatar']) : get_image_url('/images/member/logo.png');
|
|
|
|
|
|
// 二维码
|
|
|
- if (in_array($type, ['detail','share'])) {
|
|
|
+ if (in_array($type, ['detail'])) {
|
|
|
if (isset($info['wxpay_qrcode'])) {
|
|
|
$info['wxpay_qrcode'] = $info['wxpay_qrcode'] ? get_image_url($info['wxpay_qrcode']) : '';
|
|
|
}
|
|
|
if (isset($info['alipay_qrcode'])) {
|
|
|
$info['alipay_qrcode'] = $info['alipay_qrcode'] ? get_image_url($info['alipay_qrcode']) : '';
|
|
|
}
|
|
|
-
|
|
|
- $inviteUrl = get_web_url('/#/pages/register/index?code=' . $info['code']);
|
|
|
- $qrcode = $this->makeQrcode($inviteUrl);
|
|
|
- $info['qrcode'] = $qrcode ? get_image_url($qrcode) : '';
|
|
|
- $info['invite_url'] = $inviteUrl;
|
|
|
- $info['qrcode_base64'] = $qrcode?getImageContent($qrcode):'';
|
|
|
$info['parent'] = $info['parent']? $info['parent'] : ['id'=>0,'nickname' => '无', 'code' => '无'];
|
|
|
|
|
|
$info['fans'] = (int)MemberCollectService::make()->getCount($info['id'], 1,1); // 粉丝数量(被关注)
|
|
|
@@ -123,7 +117,13 @@ class MemberService extends BaseService
|
|
|
$liveOpenLevel = $liveOpenLevel>0? $liveOpenLevel : 0;
|
|
|
$info['live_open'] = $info['member_level']>=$liveOpenLevel? 1 : 0;
|
|
|
}
|
|
|
- else if ($type == 'team') {
|
|
|
+ else if ($type == 'team' || $type == 'share') {
|
|
|
+ $inviteUrl = get_web_url('/#/pages/register/index?code=' . $info['code']);
|
|
|
+ $qrcode = $this->makeQrcode($inviteUrl);
|
|
|
+ $info['qrcode'] = $qrcode ? get_image_url($qrcode) : '';
|
|
|
+ $info['invite_url'] = $inviteUrl;
|
|
|
+ $info['qrcode_base64'] = $qrcode?getImageContent($qrcode):'';
|
|
|
+
|
|
|
$info['team_count1'] = $this->getUserCountByType($info['id'], 1, 0); // 直推人数
|
|
|
$info['team_count2'] = $this->getUserCountByType($info['id'], 3, 0); // 滑落人数
|
|
|
$info['team_count'] = $this->getUserCountByType($info['id'], 1, 1); // 节点推荐人数
|