public function doMobileRedMy() { global $_W, $_GPC; $user = $this->redauth(); ///74.判断红包领取及用户信息记录。 $foo = $_GPC['foo']; $foos = array('profile', 'history'); $foo = in_array($foo, $foos) ? $foo : 'list'; require_once WWX_FXXT_ROOT . '/class/Fans.class.php'; $f = new Fans(); if ($foo == 'profile') { exit('success'); } if ($foo == 'history') { require_once WWX_FXXT_ROOT . '/class/Activity.class.php'; $id = $_GPC['actid']; $id = intval($id); $a = new Activity(); $activity = $a->getOne($id); /**Activity:2.根据活动ID查询活动内容及设置等**/ if ($activity['type'] == 'shared') { require_once WWX_FXXT_ROOT . '/class/Shared.class.php'; $s = new Shared($activity); $filters = array(); $filters['owner'] = $user['uid']; $ds = $s->getAllHelps($filters); /**Shared:1.获取助力记录列表**/ if (!empty($ds)) { foreach ($ds as &$r) { $r['user'] = $f->getOne($r['helper']); /**FANS:1.根据用户UID查询用户信息**/ } } include $this->template('redmy_shared'); } } }
if (!empty($profile)) { exit('success'); } } if ($foo == 'history') { require_once MB_ROOT . '/source/Activity.class.php'; $id = $_GPC['actid']; $id = intval($id); $a = new Activity(); $activity = $a->getOne($id); if ($activity['type'] == 'game') { $filters = array(); $filters['owner'] = $user['uid']; $filters['activity'] = $activity['actid']; $records = $a->getRecords($filters); include $this->template('my-game'); } if ($activity['type'] == 'shared') { require_once MB_ROOT . '/source/Shared.class.php'; $s = new Shared($activity); $filters = array(); $filters['owner'] = $user['uid']; $ds = $s->getAllHelps($filters); if (!empty($ds)) { foreach ($ds as &$r) { $r['user'] = $f->getOne($r['helper']); } } include $this->template('my-shared'); } }