...
|
...
|
@@ -299,7 +299,7 @@ class BindController extends AbstractAction |
|
|
break;
|
|
|
}
|
|
|
|
|
|
$res = BindData::relateMobile($data, $sourceType, $phoneNum, $areaCode);
|
|
|
$res = BindData::relateMobile($openId, $sourceType, $phoneNum, $areaCode);
|
|
|
if (!isset($res['code'])) {
|
|
|
break;
|
|
|
}
|
...
|
...
|
@@ -309,7 +309,7 @@ class BindController extends AbstractAction |
|
|
$this->setSession('_TOKEN', $token);
|
|
|
$this->setSession('_LOGIN_UID', $res['data']['uid']);
|
|
|
$this->setCookie('_TOKEN', $token);
|
|
|
$successUrl = Helpers::url('passport/bind/success', array('sourceType' => $sourceType));
|
|
|
$successUrl = Helpers::url('/passport/bind/success', array('sourceType' => $sourceType));
|
|
|
$refer = Helpers::syncUserSession($res['data']['uid'], $successUrl);
|
|
|
$data = array('code' => $res['code'], 'message' => $res['message'], 'data' => array('refer' => $refer));
|
|
|
}
|
...
|
...
|
@@ -332,7 +332,7 @@ class BindController extends AbstractAction |
|
|
$sourceName = self::getSourceName($sourceType);
|
|
|
$data = array(
|
|
|
'isPassportPage' => true, // 模板中模块标识
|
|
|
'successTip' => '恭喜,您的手机号码已经关联成功。<br/>该手机号码不能用来登陆此账户,您可以选择继续使用' . $sourceName . '登录', //提示文字
|
|
|
'successTip' => '恭喜您,第三方账号关联手机号码成功!', //提示文字
|
|
|
'goUrl' => Helpers::url('', array(), 'default'), //H5首页
|
|
|
);
|
|
|
|
...
|
...
|
|