if ($openid_info = $this->get_users_sina_by_uid($uid))
{
if ($openid_info != $sina_profile)
{
if ($is_ajax)
{
H::ajax_json_output(AWS_APP::RSM(null, "-1", '此账号已经绑定另外一个微博'));
}
else
{
H::redirect_msg('此账号已经绑定另外一个微博', '/account/logout/');
}
}
}
if (! $user_sina = $this->get_users_sina_by_id($sina_profile))
{
$this->users_sina_add($sina_profile, $uid, $sina_profile, $sina_profile, $sina_profile, $sina_profile, $sina_profile, $sina_profile);
}
<!-- else if ($user_sina != $uid)
{
if ($is_ajax)
{
H::ajax_json_output(AWS_APP::RSM(null, "-1", '此账号已经与另外一个微博绑定'));
}
else
{
H::redirect_msg('此账号已经与另外一个微博绑定', '/account/setting/openid/');
}
}
-->
<!-- -->里的代码完全可以去掉
阅读全文
收起全文