MsgController.class.php
966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?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]);
}
}
}