|
|
@@ -97,15 +97,15 @@ class MemberService extends BaseService
|
|
|
if ($info && !in_array($type, ['auth', 'check','login'])) {
|
|
|
$info['avatar'] = $info['avatar'] ? get_image_url($info['avatar']) : get_image_url('/images/member/logo.png');
|
|
|
|
|
|
- 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']) : '';
|
|
|
- }
|
|
|
-
|
|
|
// 二维码
|
|
|
if (in_array($type, ['detail','share'])) {
|
|
|
+ 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) : '';
|
|
|
@@ -117,8 +117,13 @@ class MemberService extends BaseService
|
|
|
$info['follow'] = (int)MemberCollectService::make()->getCount($info['id'], 1,2); // 关注数量
|
|
|
$info['like'] = (int)MemberCollectService::make()->getCount($info['id'], 3,2); // 点赞喜欢数量
|
|
|
|
|
|
- } // 商家后台
|
|
|
+ }
|
|
|
|
|
|
+ else if ($type == 'info') {
|
|
|
+ $liveOpenLevel = ConfigService::make()->getConfigByCode('live_open_level',0);
|
|
|
+ $liveOpenLevel = $liveOpenLevel>0? $liveOpenLevel : 0;
|
|
|
+ $info['live_open'] = $info['member_level']>=$liveOpenLevel? 1 : 0;
|
|
|
+ }
|
|
|
else if ($type == 'team') {
|
|
|
|
|
|
}else {
|