|
|
@@ -499,7 +499,7 @@ class MemberService extends BaseService
|
|
|
return $info;
|
|
|
}
|
|
|
|
|
|
- $defaultField = ['id', 'user_type', 'realname', 'mobile', 'nickname', 'balance', 'code', 'openid', 'status', 'avatar'];
|
|
|
+ $defaultField = ['id', 'user_type', 'realname', 'mobile', 'nickname','qrcode', 'balance', 'code', 'openid', 'status', 'avatar'];
|
|
|
$field = $field ? $field : $defaultField;
|
|
|
if (is_array($where)) {
|
|
|
$info = $this->model->with(['store', 'agent'])->where(['mark' => 1])->where($where)->select($field)->first();
|
|
|
@@ -534,6 +534,10 @@ class MemberService extends BaseService
|
|
|
$info['team_count'] = $this->getTeamCount($info['id']);
|
|
|
}
|
|
|
|
|
|
+ if($type == 'agent'){
|
|
|
+ $info['qrcode'] = MpService::make()->getMiniQrcode('pages/login/login',"rid={$info['id']}");
|
|
|
+ }
|
|
|
+
|
|
|
RedisService::set($cacheKey, $info, rand(30, 60));
|
|
|
}
|
|
|
|