member_info['member_id']); $ppintuangroup_model = model('ppintuangroup'); $ppintuanorder_model = model('ppintuanorder'); $ppintuangroup_list = $ppintuangroup_model->getPpintuangroupList($condition, 10); #获取开团信息 foreach ($ppintuangroup_list as $key => $ppintuangroup) { //获取开团订单下的参团订单 $condition = array(); $condition[] = array('pintuangroup_id', '=', $ppintuangroup['pintuangroup_id']); $ppintuangroup_list[$key]['pintuangroup_starttime_text'] = date('Y-m-d H:i', $ppintuangroup['pintuangroup_starttime']); $ppintuangroup_list[$key]['pintuangroup_endtime_text'] = date('Y-m-d H:i', $ppintuangroup['pintuangroup_endtime']); if ($ppintuangroup['pintuangroup_is_virtual']) { $ppintuangroup_list[$key]['order_list'] = $ppintuanorder_model->getPpintuanvrorderList($condition); } else { $ppintuangroup_list[$key]['order_list'] = $ppintuanorder_model->getPpintuanorderList($condition); } } $pintuangroup_state_array = $ppintuangroup_model->getPintuangroupStateArray(); $result = array_merge(array('list' => $ppintuangroup_list), mobile_page($ppintuangroup_model->page_info)); ds_json_encode(10000, '', $result); } }