1 ], [ 'out_order_id', 'string', 'max' => 100 ], [ 'amount', 'required' ], [ 'amount', 'float', 'min' => 0.1, 'max' => 10000000 ], // 限制最大金额为1000万,防止异常大金额 [ 'out_user_id', 'string', 'max' => 50 ], [ 'remark', 'string', 'max' => 255 ], [ 'callback_data', 'array' ], [ 'out_order_id', new TransferOrderInValidator($this, []), 'msg' => '外部订单号重复' ] ]; } /** * 默认值 */ public function default(): array { return []; } }