<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Http\Requests;use Illuminate\Foundation\Http\FormRequest;use Illuminate\Http\Request;class ChannelRequest extends FormRequest{public function authorize(){return true;}public function rules(){$P2gSwitchx1=$this->method();$P2g0=$P2gSwitchx1=='POST';if($P2g0)goto P2gBodyxj;goto P2gNextxj;P2gBodyxj:goto P2gCasex2;goto P2gxi;P2gNextxj:P2gxi:$P2g0=$P2gSwitchx1=='PUT';if($P2g0)goto P2gBodyxh;goto P2gNextxh;P2gBodyxh:goto P2gCasex3;goto P2gxg;P2gNextxh:P2gxg:$P2g0=$P2gSwitchx1=='PATCH';if($P2g0)goto P2gBodyxf;goto P2gNextxf;P2gBodyxf:goto P2gCasex4;goto P2gxe;P2gNextxf:P2gxe:$P2g0=$P2gSwitchx1=='GET';if($P2g0)goto P2gBodyxd;goto P2gNextxd;P2gBodyxd:goto P2gCasex5;goto P2gxc;P2gNextxd:P2gxc:$P2g0=$P2gSwitchx1=='DELETE';if($P2g0)goto P2gBodyxb;goto P2gNextxb;P2gBodyxb:goto P2gCasex6;goto P2gxa;P2gNextxb:P2gxa:goto P2gDefaultAfterx7;$P2g0=!$P2gSwitchx1;if($P2g0)goto P2gBodyx9;goto P2gNextx9;P2gBodyx9:goto P2gDefaultx7;goto P2gx8;P2gNextx9:P2gx8:P2gDefaultAfterx7:goto P2gDefaultx7;goto P2gx1;P2gCasex2:$P2gAC0=array();$P2gAC0['channel_name']='required|max:15|unique:channels,channel_name';$P2gAC0['department_id']='required';$P2gAC0['manager']='required|max:10';$P2gAC0['reduce_type']='required';$P2gAC0['role_id']='required';$P2gAC0['ceiling_num']='nullable|integer';$P2gAC0['username']='required|min:6|unique:users,username';$P2gAC0['password']='required|between:6,18';return $P2gAC0;P2gCasex3:P2gCasex4:$P2gAC0=array();$P2gAC0['channel_name']='required|max:15';$P2gAC0['department_id']='required';$P2gAC0['manager']='nullable|max:10';$P2gAC0['reduce_type']='required';$P2gAC0['role_id']='required';$P2gAC0['ceiling_num']='nullable|integer';$P2g0='required|min:6|unique:users,username,' . $this->get('user_id');$P2gAC0['username']=$P2g0;$P2gAC0[]=',id';$P2gAC0['password']='nullable|between:6,18|regex:/[^\s　]+/';return $P2gAC0;P2gCasex5:P2gCasex6:P2gDefaultx7:$P2gAC0=array();return $P2gAC0;P2gx1:}public function messages(){$P2gAC0=array();$P2gAC0['channel_code.required']='渠道码不能为空。';$P2gAC0['channel_code.unique']='渠道码已存在。';$P2gAC0['channel_name.required']='渠道名称不能为空。';$P2gAC0['channel_name.unique']='渠道名称已经存在。';$P2gAC0['channel_name.max']='渠道名称控制在15个字内。';$P2gAC0['department_id.required']='渠道所属部门是必选项。';$P2gAC0['manager.required']='渠道负责人是必填的。';$P2gAC0['manager.max']='渠道负责人控制在10个内。';$P2gAC0['reduce_type.required']='渠道包扣量模式是必选项。';$P2gAC0['role_id.required']='渠道角色是必选项。';$P2gAC0['ceiling_num.integer']='单日注册上限必选是整数。';$P2gAC0['username.required']='登录用户是必填的。';$P2gAC0['username.min']='请设置6位以上的登录用户。';$P2gAC0['password.between']='登录密码控制在6~18个字符内';$P2gAC0['password.regex']='登录密码中不能有空格';$P2gAC0['username.unique']='该登录名已经存在';return $P2gAC0;}}
?>