正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -194,7 +194,7 @@ func (postData postPurposeOrderDetail) Valid() error { | @@ -194,7 +194,7 @@ func (postData postPurposeOrderDetail) Valid() error { | ||
| 194 | if len(postData.OrderDist) == 0 { | 194 | if len(postData.OrderDist) == 0 { |
| 195 | return lib.ThrowError(lib.ARG_ERROR, "订单区域必填") | 195 | return lib.ThrowError(lib.ARG_ERROR, "订单区域必填") |
| 196 | } | 196 | } |
| 197 | - if len(postData.Product) > 0 { | 197 | + if len(postData.Product) == 0 { |
| 198 | return lib.ThrowError(lib.ARG_ERROR, "货品列表必填") | 198 | return lib.ThrowError(lib.ARG_ERROR, "货品列表必填") |
| 199 | } | 199 | } |
| 200 | if len(postData.Product) > 50 { | 200 | if len(postData.Product) > 50 { |
-
请 注册 或 登录 后发表评论