Authored by xiaowei

关联成功页提示语

@@ -327,7 +327,7 @@ class BindController extends AbstractAction @@ -327,7 +327,7 @@ class BindController extends AbstractAction
327 { 327 {
328 $this->setTitle('关联成功'); 328 $this->setTitle('关联成功');
329 $sourceType = $this->get('sourceType', ''); 329 $sourceType = $this->get('sourceType', '');
330 - 330 + $sourceName = self::getSourceName($sourceType);
331 $data = array( 331 $data = array(
332 'isPassportPage' => true, // 模板中模块标识 332 'isPassportPage' => true, // 模板中模块标识
333 'successTip' => '恭喜,您的手机号码已经关联成功。<br/>该手机号码不能用来登陆此账户,您可以选择继续使用' . $sourceName . '登录', //提示文字 333 'successTip' => '恭喜,您的手机号码已经关联成功。<br/>该手机号码不能用来登陆此账户,您可以选择继续使用' . $sourceName . '登录', //提示文字
@@ -399,4 +399,23 @@ class BindController extends AbstractAction @@ -399,4 +399,23 @@ class BindController extends AbstractAction
399 $this->echoJson($data); 399 $this->echoJson($data);
400 } 400 }
401 401
  402 + protected static function getSourceName($sourceType)
  403 + {
  404 + $name = '';
  405 + switch ($sourceType) {
  406 + case 'qq':
  407 + $name = 'qq';
  408 + break;
  409 + case 'sina':
  410 + $name = '微博';
  411 + break;
  412 + case 'alipay':
  413 + $name = '支付宝';
  414 + break;
  415 + default:
  416 + break;
  417 + }
  418 + return $name;
  419 + }
  420 +
402 } 421 }