作者 唐旭辉

Merge branch 'dev' into test

@@ -550,7 +550,7 @@ type postRealOrderDetail struct { @@ -550,7 +550,7 @@ type postRealOrderDetail struct {
550 ShipmentsId string `json:"shipmentsId"` //发货单号 550 ShipmentsId string `json:"shipmentsId"` //发货单号
551 } 551 }
552 552
553 -func (postData postRealOrderDetail) Valid() error { 553 +func (postData *postRealOrderDetail) Valid() error {
554 postData.ShipmentsId = strings.TrimSpace(postData.ShipmentsId) 554 postData.ShipmentsId = strings.TrimSpace(postData.ShipmentsId)
555 if len(postData.ShipmentsId) == 0 { 555 if len(postData.ShipmentsId) == 0 {
556 return lib.ThrowError(lib.ARG_ERROR, "订单的发货单号必填") 556 return lib.ThrowError(lib.ARG_ERROR, "订单的发货单号必填")