|
@@ -30,7 +30,7 @@ use Cas\Dao\LotteryUserHelpLog;
|
|
|
*
|
|
|
*/
|
|
|
class EventsController extends Controller {
|
|
|
- private $userCookieName = "USER_INFO_1";
|
|
|
+ private $userCookieName = "USER_INFO_2";
|
|
|
private $key;
|
|
|
public function __construct() {
|
|
|
$this->key = Config::getInstance ()->get ( 'passport_sign_key' );
|
|
@@ -229,6 +229,7 @@ class EventsController extends Controller {
|
|
|
if ($type == 'share') {
|
|
|
|
|
|
$this->share($info, $plat_form_id, $source_user);
|
|
|
+
|
|
|
} elseif ($type == 'prize') {
|
|
|
|
|
|
$this->prize($info, $plat_form_id, 10, false);
|
|
@@ -284,6 +285,17 @@ class EventsController extends Controller {
|
|
|
$this->setOutput('help_id', $id);
|
|
|
$this->setOutput('helpData', $helpData);
|
|
|
$this->setOutput('helpDataTotal', $total_num);
|
|
|
+
|
|
|
+
|
|
|
+ $url = Request::g('url');
|
|
|
+ $plat_form_id = $this->getPlatFormId();
|
|
|
+ $thisUrl = $this->objMLottery -> getEventsUrl($info['type'],$info['create_time'],$url);
|
|
|
+
|
|
|
+ $thisUrl .= '/share?events_id='.$events_id.'&help_id='.$id.'&help_session='.$session.'&source_user=' . $uid;
|
|
|
+ $loginUrl = $this -> getLoginUrl($thisUrl);
|
|
|
+ $info['thisUrl'] = $thisUrl;
|
|
|
+ $this->setOutput('thisUrl', $thisUrl);
|
|
|
+ $this->setOutput('loginUrl', $loginUrl);
|
|
|
}
|
|
|
}
|
|
|
|