uid; $type = input('type', 1); $reslut = model('Envelope')->get_red_envelope_list($uid, $type); return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']); } //抢红包 public function snatch_red_envelope(){ $uid = $this->uid; $type = input('type', 1); $rid = input('rid', 0); $reslut = model('Envelope')->snatch_red_envelope($uid, $rid, $type); return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']); } //红包信息 public function red_envelope_info(){ $uid = $this->uid; $type = input('type', 1); $reslut = model('Envelope')->red_envelope_info($uid, $type); return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']); } //红包规则 public function envelope_note(){ $reslut = model('Envelope')->envelope_note(); return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']); } //抢红包记录 public function user_red_envelope_log_list(){ $uid = $this->uid; $type = input('type', 1); $page = input('page', 1); $page_limit = input('page_limit', 10); $reslut = model('Envelope')->user_red_envelope_log_list($uid, $type, $page, $page_limit); return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']); } }