Authored by xiaowei

关联成功页提示语

... ... @@ -327,7 +327,7 @@ class BindController extends AbstractAction
{
$this->setTitle('关联成功');
$sourceType = $this->get('sourceType', '');
$sourceName = self::getSourceName($sourceType);
$data = array(
'isPassportPage' => true, // 模板中模块标识
'successTip' => '恭喜,您的手机号码已经关联成功。<br/>该手机号码不能用来登陆此账户,您可以选择继续使用' . $sourceName . '登录', //提示文字
... ... @@ -399,4 +399,23 @@ class BindController extends AbstractAction
$this->echoJson($data);
}
protected static function getSourceName($sourceType)
{
$name = '';
switch ($sourceType) {
case 'qq':
$name = 'qq';
break;
case 'sina':
$name = '微博';
break;
case 'alipay':
$name = '支付宝';
break;
default:
break;
}
return $name;
}
}
... ...