|
@@ -138,6 +138,10 @@ class EventsController extends Controller {
|
|
|
if ($authorize) {
|
|
|
if($ckLogin==true){
|
|
|
$info['login'] = 2;
|
|
|
+ $weixin = $this->checkIsFromWeixin();
|
|
|
+ if (!$weixin) {
|
|
|
+ self::redirect($loginUrl);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -489,9 +493,15 @@ class EventsController extends Controller {
|
|
|
if (!$tokenid) {
|
|
|
$tokenid = Request::g('tokenId');
|
|
|
}
|
|
|
+ if ($tokenid) {
|
|
|
+ $_COODIE['tokenid'] = $tokenid;
|
|
|
+ }
|
|
|
if ($tokenid) {
|
|
|
|
|
|
$passport_url .= '&tokenid=' . $tokenid;
|
|
|
+ } elseif (isset($_COODIE['tokenid'])) {
|
|
|
+
|
|
|
+ $passport_url .= '&tokenid=' . $_COODIE['tokenid'];
|
|
|
} else {
|
|
|
|
|
|
$this->setOutput('applogin', 1);
|