dever 7 years ago
parent
commit
56b898ab2a
2 changed files with 8 additions and 1 deletions
  1. 7 0
      tm/lib/Controller/EventsController.class.php
  2. 1 1
      tm/template_dir/events_infos.html

+ 7 - 0
tm/lib/Controller/EventsController.class.php

@@ -86,6 +86,13 @@ class EventsController extends Controller {
 		$url = Request::g('url');
 		$plat_form_id = $this->getPlatFormId();
 		$thisUrl  = $this->objMLottery -> getEventsUrl($info['type'],$info['create_time'],$url);
+
+		$type = Request::g('type');
+		if ($type == 'share') {
+			$thisUrl .= '/share';
+		}
+		
+
 		$loginUrl = $this -> getLoginUrl($thisUrl);
 		$info['thisUrl'] = $thisUrl;
 		$this->setOutput('loginUrl', $loginUrl);

+ 1 - 1
tm/template_dir/events_infos.html

@@ -19,7 +19,7 @@
             <a class="button yaoqing" node-type="share">邀请好友助力!</a>
             <{else}>
             <a class="button" href="javascript:;" onclick="help();">为好友助力!</a>
-            <a class="button" href="<{$info.thisUrl}>">我也要参加!</a>
+            <a class="button" href="<{$thisUrl}>">我也要参加!</a>
             <{/if}>
         </section>
         <section class="friends">