|
@@ -133,7 +133,7 @@ class MemberService extends BaseService
|
|
|
// 结果返回
|
|
// 结果返回
|
|
|
$result = [
|
|
$result = [
|
|
|
'access_token' => $token,
|
|
'access_token' => $token,
|
|
|
- 'info' => ['id' => $userId, 'openid' => $openid,'nickname'=>$nickname, 'mobile' => $mobile],
|
|
|
|
|
|
|
+ 'info' => ['id' => $userId, 'openid' => $openid,'nickname'=>$nickname,'nickname_text'=>format_name($nickname), 'mobile' => $mobile],
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
// 用户缓存信息
|
|
// 用户缓存信息
|
|
@@ -272,7 +272,7 @@ class MemberService extends BaseService
|
|
|
// 结果返回
|
|
// 结果返回
|
|
|
$result = [
|
|
$result = [
|
|
|
'access_token' => $token,
|
|
'access_token' => $token,
|
|
|
- 'info' => ['id' => $userId, 'openid' => $openid, 'mobile' => $data['mobile']],
|
|
|
|
|
|
|
+ 'info' => ['id' => $userId, 'openid' => $openid,'nickname'=>$nickname,'nickname_text'=>format_name($nickname), 'mobile' => $data['mobile']],
|
|
|
'coupon'=>$coupon
|
|
'coupon'=>$coupon
|
|
|
];
|
|
];
|
|
|
|
|
|
|
@@ -349,7 +349,7 @@ class MemberService extends BaseService
|
|
|
$info = $info ? $info->toArray() : [];
|
|
$info = $info ? $info->toArray() : [];
|
|
|
if ($info) {
|
|
if ($info) {
|
|
|
$info['create_time'] = $info['create_time']?datetime(strtotime($info['create_time']),'Y-m-d H:i') : '';
|
|
$info['create_time'] = $info['create_time']?datetime(strtotime($info['create_time']),'Y-m-d H:i') : '';
|
|
|
-
|
|
|
|
|
|
|
+ $info['nickname'] = format_name($info['nickname']);
|
|
|
if (isset($info['mobile'])) {
|
|
if (isset($info['mobile'])) {
|
|
|
$info['mobile_text'] = $info['mobile'] ? format_mobile($info['mobile']) : '';
|
|
$info['mobile_text'] = $info['mobile'] ? format_mobile($info['mobile']) : '';
|
|
|
}
|
|
}
|