MsgController.class.php 966 Bytes
<?php
/**
 *
 * @author: houyingcai
 * @email:    594609175@qq.com
 * @date :  2017-05-10 17:22:44
 * @version $Id$
 */

namespace Frontend\Controller\Index;

use Common\Common\Constant;
use Common\Service\ActivityService;
use Common\Service\CommentService;
use Common\Service\PacketrecordService;

class MsgController extends \Common\Controller\Frontend\AbstractController
{

    public function Index()
    {
        $ac_id = I('get.ac_id');
        $type = I('get.type');

        if (empty($ac_id)) {

            return true;
        }

        if (Constant::MSG_PRIZE == $type) {
            // 跳转活动奖品地址
            redirectFront('/app/page/lottery/mylottery-list',
                ['_identifier' => APP_IDENTIFIER, 'ac_id' => $ac_id]);
        } else {
            // 跳转活动详情
            redirectFront('/app/page/lottery/integral-lottery',
                ['_identifier' => APP_IDENTIFIER, 'ac_id' => $ac_id]);
        }


    }


}