|
@@ -53,6 +53,18 @@ class Member extends EventsController {
|
|
|
$events_ids[$d['run_time_data']['events']['id']] = $d['run_time_data']['events']['id'];
|
|
|
|
|
|
if (in_array($d['run_time_data']['events']['type'], array(4,0))) {
|
|
|
+
|
|
|
+ $data[$key]['feedback'] = 2;//未填写反馈
|
|
|
+ $where = array();
|
|
|
+ $where['uid'] = $d['uid'];
|
|
|
+ $where['events_id'] = $d['run_time_data']['events']['id'];
|
|
|
+ $where['status'] = 1;
|
|
|
+
|
|
|
+ $ids = $objLotteryUserFeedback->findIdsBy ( $where, 1, $order = ' id desc');
|
|
|
+ if ($ids) {
|
|
|
+ $data[$key]['feedback'] = 3;//已填写反馈
|
|
|
+ }
|
|
|
+ /*
|
|
|
if (isset($d['express']) && $d['express']) {
|
|
|
$data[$key]['feedback'] = 2;//未填写反馈
|
|
|
$where = array();
|
|
@@ -67,6 +79,7 @@ class Member extends EventsController {
|
|
|
} else {
|
|
|
$data[$key]['feedback'] = 4;//未填写收货地址
|
|
|
}
|
|
|
+ */
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -151,7 +164,20 @@ class Member extends EventsController {
|
|
|
$data[$key]['feedback'] = 1;//不需要填写反馈
|
|
|
$events_ids[$d['run_time_data']['events']['id']] = $d['run_time_data']['events']['id'];
|
|
|
|
|
|
+
|
|
|
if (in_array($d['run_time_data']['events']['type'], array(4,0))) {
|
|
|
+ $data[$key]['feedback'] = 2;//未填写反馈
|
|
|
+ $where = array();
|
|
|
+ $where['uid'] = $d['uid'];
|
|
|
+ $where['events_id'] = $d['run_time_data']['events']['id'];
|
|
|
+ $where['status'] = 1;
|
|
|
+
|
|
|
+ $ids = $objLotteryUserFeedback->findIdsBy ( $where, 1, $order = ' id desc');
|
|
|
+ $info = $objLotteryUserFeedback->gets ( $ids );
|
|
|
+ if ($info) {
|
|
|
+ $data[$key]['feedback'] = 3;//已填写反馈
|
|
|
+ }
|
|
|
+ /*
|
|
|
if (isset($d['express']) && $d['express']) {
|
|
|
$data[$key]['feedback'] = 2;//未填写反馈
|
|
|
$where = array();
|
|
@@ -167,6 +193,7 @@ class Member extends EventsController {
|
|
|
} else {
|
|
|
$data[$key]['feedback'] = 4;//未填写收货地址
|
|
|
}
|
|
|
+ */
|
|
|
}
|
|
|
}
|
|
|
|