', TIMESTAMP); $bonus = $bonus_model->getOneBonus($condition); if (!$bonus) { ds_json_encode(10001, lang('bonus_not_exist')); } $bonus['bonus_begintime_text'] = date('Y-m-d H:i:s', $bonus['bonus_begintime']); $bonus['bonus_endtime_text'] = date('Y-m-d H:i:s', $bonus['bonus_endtime']); $result['bonus'] = $bonus; //获取最近10条领取记录 $condition = array(); $condition[] = array('bonus_id', '=', $bonus_id); $condition[] = array('member_id', '>', 0); $result['bonusreceive_list'] = $bonus_model->getBonusreceiveList($condition, '', 10); ds_json_encode(10000, '', $result); } }