'require', 'network_type' => 'require', 'address' => 'require', 'security_code' => 'nullable', 'withdraw_fee' => 'nullable|numeric|min:0|max:0.99|regex:/^\d+(\.\d{1,2})?$/', 'is_withdraw' => 'require|integer|in:1,0', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'currency' => '币种', 'network_type' => '网络类型', 'address' => '地址', 'security_code' => '安全码', 'withdraw_fee' => '提现手续费', 'is_withdraw' => '是否开启提现', ]; /** * @notes 编辑场景 */ public function sceneEdit() { return $this->only(['id','currency', 'network_type', 'address', 'security_code', 'withdraw_fee', 'is_withdraw']); } public function sceneId() { return $this->only(['id']); } }