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