|
@@ -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';
|
|
|
+ }
|
|
|
|
|
|
$cookieInfo = html_entity_decode ( Cookie::get ( $this->userCookieName ) );
|
|
|
$cookieInfo = json_decode ( $cookieInfo, true );
|