提交 c8ebe437 编写于 作者: T Terry

update

上级 29dd94d4
......@@ -121,7 +121,7 @@
outerWidth = typeof window.outerWidth != 'undefined' ? window.outerWidth : document.body.clientWidth,
outerHeight = typeof window.outerHeight != 'undefined' ? window.outerHeight : (document.body.clientHeight - 22),
width = 800,
height = 450,
height = 650,
left = parseInt(screenX + ((outerWidth - width) / 2), 10),
top = parseInt(screenY + ((outerHeight - height) / 2.5), 10),
features = (
......
......@@ -66,7 +66,10 @@ class GoogleController extends AppfrontController
Yii::$service->customer->registerThirdPartyAccountAndLogin($user, 'google');
echo '<script>
window.close();
window.opener.location.reload();
window.onunload = refreshParent;
function refreshParent() {
window.opener.location.reload();
}
</script>';
exit;
}
......
......@@ -45,8 +45,8 @@ class Facebook extends Service
$this->facebook_app_secret = isset($thirdLogin['facebook']['facebook_app_secret']) ? $thirdLogin['facebook']['facebook_app_secret'] : '';
if ($this->facebook_app_secret && $this->facebook_app_id) {
echo $this->facebook_app_secret;
echo $this->facebook_app_id;
//echo $this->facebook_app_secret;
//echo $this->facebook_app_id;
FacebookSession::setDefaultApplication($this->facebook_app_id, $this->facebook_app_secret);
$redirectUrl = Yii::$service->url->getUrl($urlKey);
//echo $redirectUrl;exit;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册