|
@@ -314,22 +314,29 @@ class Applet extends Base
|
|
{
|
|
{
|
|
$result = array();
|
|
$result = array();
|
|
$data = $this->decryptData($session_key);
|
|
$data = $this->decryptData($session_key);
|
|
|
|
+
|
|
|
|
+ $result['openid'] = '';
|
|
|
|
+ $result['unionid'] = '';
|
|
|
|
+ $result['mobile'] = '';
|
|
|
|
+ $result['phone'] = '';
|
|
if ($data && isset($data->openId)) {
|
|
if ($data && isset($data->openId)) {
|
|
$result['openid'] = $data->openId;
|
|
$result['openid'] = $data->openId;
|
|
- $result['unionid'] = '';
|
|
|
|
- $result['mobile'] = '';
|
|
|
|
- $result['phone'] = '';
|
|
|
|
if (isset($data->unionId)) {
|
|
if (isset($data->unionId)) {
|
|
$result['unionid'] = $data->unionId;
|
|
$result['unionid'] = $data->unionId;
|
|
}
|
|
}
|
|
- if (isset($data->purePhoneNumber)) {
|
|
|
|
- $result['mobile'] = $data->purePhoneNumber;
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ if ($data && isset($data->phoneNumber)) {
|
|
if (isset($data->phoneNumber)) {
|
|
if (isset($data->phoneNumber)) {
|
|
$result['phone'] = $data->phoneNumber;
|
|
$result['phone'] = $data->phoneNumber;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if ($data && isset($data->purePhoneNumber)) {
|
|
|
|
+ if (isset($data->purePhoneNumber)) {
|
|
|
|
+ $result['mobile'] = $data->purePhoneNumber;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
return $result;
|
|
return $result;
|
|
}
|
|
}
|