Showing
1 changed file
with
3 additions
and
3 deletions
@@ -299,7 +299,7 @@ class BindController extends AbstractAction | @@ -299,7 +299,7 @@ class BindController extends AbstractAction | ||
299 | break; | 299 | break; |
300 | } | 300 | } |
301 | 301 | ||
302 | - $res = BindData::relateMobile($data, $sourceType, $phoneNum, $areaCode); | 302 | + $res = BindData::relateMobile($openId, $sourceType, $phoneNum, $areaCode); |
303 | if (!isset($res['code'])) { | 303 | if (!isset($res['code'])) { |
304 | break; | 304 | break; |
305 | } | 305 | } |
@@ -309,7 +309,7 @@ class BindController extends AbstractAction | @@ -309,7 +309,7 @@ class BindController extends AbstractAction | ||
309 | $this->setSession('_TOKEN', $token); | 309 | $this->setSession('_TOKEN', $token); |
310 | $this->setSession('_LOGIN_UID', $res['data']['uid']); | 310 | $this->setSession('_LOGIN_UID', $res['data']['uid']); |
311 | $this->setCookie('_TOKEN', $token); | 311 | $this->setCookie('_TOKEN', $token); |
312 | - $successUrl = Helpers::url('passport/bind/success', array('sourceType' => $sourceType)); | 312 | + $successUrl = Helpers::url('/passport/bind/success', array('sourceType' => $sourceType)); |
313 | $refer = Helpers::syncUserSession($res['data']['uid'], $successUrl); | 313 | $refer = Helpers::syncUserSession($res['data']['uid'], $successUrl); |
314 | $data = array('code' => $res['code'], 'message' => $res['message'], 'data' => array('refer' => $refer)); | 314 | $data = array('code' => $res['code'], 'message' => $res['message'], 'data' => array('refer' => $refer)); |
315 | } | 315 | } |
@@ -332,7 +332,7 @@ class BindController extends AbstractAction | @@ -332,7 +332,7 @@ class BindController extends AbstractAction | ||
332 | $sourceName = self::getSourceName($sourceType); | 332 | $sourceName = self::getSourceName($sourceType); |
333 | $data = array( | 333 | $data = array( |
334 | 'isPassportPage' => true, // 模板中模块标识 | 334 | 'isPassportPage' => true, // 模板中模块标识 |
335 | - 'successTip' => '恭喜,您的手机号码已经关联成功。<br/>该手机号码不能用来登陆此账户,您可以选择继续使用' . $sourceName . '登录', //提示文字 | 335 | + 'successTip' => '恭喜您,第三方账号关联手机号码成功!', //提示文字 |
336 | 'goUrl' => Helpers::url('', array(), 'default'), //H5首页 | 336 | 'goUrl' => Helpers::url('', array(), 'default'), //H5首页 |
337 | ); | 337 | ); |
338 | 338 |
-
Please register or login to post a comment