'required|nonempty|integer', 'openid' => 'required|nonempty', 'money' => 'required|nonempty', ]; } public function messages(): array { return [ '*.*' => ':attribute 参数异常', ]; } public function attributes(): array { return [ 'order_id' => '订单', 'money' => '订单金额', 'openid' => '用户标识', ]; } }