|
@@ -81,6 +81,8 @@ class EventsController extends Controller {
|
|
|
$objMLotteryLog = new LotteryLog ( null, $info['id'] );
|
|
|
$info['user_total'] = $objMLotteryLog->getUserParticipateLogNumGroupByUid ();
|
|
|
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
$url = Request::g('url');
|
|
@@ -360,6 +362,8 @@ class EventsController extends Controller {
|
|
|
if (isset($v['pic'])) {
|
|
|
$data[$k]['pic'] = explode(',', $v['pic']);
|
|
|
}
|
|
|
+
|
|
|
+ $type = isset($eventsData['type']) ? $eventsData['type'] : $eventsData[$v['events_id']]['type'];
|
|
|
|
|
|
$data[$k]['user'] = array();
|
|
|
$data[$k]['user']['cdate'] = date('Y.m.d H:i', isset($v['winners_time']) ? $v['winners_time'] : $v['create_time']);
|
|
@@ -367,6 +371,19 @@ class EventsController extends Controller {
|
|
|
|
|
|
$data[$k]['user']['headimgurl'] = $this->getUserHead($users[$v['uid']]);
|
|
|
|
|
|
+
|
|
|
+ $data[$k]['user']['ext'] = '';
|
|
|
+ if ($type == 6) {
|
|
|
+ $data[$k]['user']['ext'] = '邀请';
|
|
|
+ } elseif ($type == 4) {
|
|
|
+ $data[$k]['user']['ext'] = '试用资格';
|
|
|
+ } elseif ($type == 7) {
|
|
|
+ $data[$k]['user']['ext'] = '优惠券';
|
|
|
+ } elseif ($type == 1) {
|
|
|
+ $data[$k]['user']['ext'] = '奖品';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if (isset($v['express']['phone']) && $v['express']['phone']) {
|
|
|
$data[$k]['user']['mobile'] = substr_replace($v['express']['phone'],'****',3,4);
|
|
|
} elseif (isset($newUserExpData[$v['uid']]['phone']) && $newUserExpData[$v['uid']]['phone']) {
|
|
@@ -558,7 +575,7 @@ class EventsController extends Controller {
|
|
|
* @param string $title
|
|
|
*/
|
|
|
public function checkIsFromMobile($title) {
|
|
|
-
|
|
|
+ return true;
|
|
|
if (Request::get ( 'debugs' ) == 'rabin') {
|
|
|
return true;
|
|
|
}
|