rabin 7 years ago
parent
commit
ba2761b5f5
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tm/lib/Controller/EventsController.class.php

+ 4 - 4
tm/lib/Controller/EventsController.class.php

@@ -87,10 +87,6 @@ class EventsController extends Controller {
 		$plat_form_id = $this->getPlatFormId();
 		$thisUrl  = $this->objMLottery -> getEventsUrl($info['type'],$info['create_time'],$url);
 
-		$type = Request::g('type');
-		if ($type == 'share' && !strstr($thisUrl, 'share')) {
-			$thisUrl .= '/share';
-		}
 		$loginUrl = $this -> getLoginUrl($thisUrl);
 		$info['thisUrl'] = $thisUrl;
 		$this->setOutput('thisUrl', $thisUrl);
@@ -479,6 +475,10 @@ class EventsController extends Controller {
 	 */
 	public function getLoginUrl($thisUrl) {
 		
+		$type = Request::g('type');
+		if ($type == 'share' && !strstr($thisUrl, 'share')) {
+			$thisUrl .= '/share';
+		}
 		// 1.拼接一个 referer 地址 
 		$cookieInfo = html_entity_decode ( Cookie::get ( $this->userCookieName ) );
 		$cookieInfo = json_decode ( $cookieInfo, true );