- 添加Struct2MapByJson
- 去掉将全局structs.DefaultTagName设置为"json"
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package weimobapi
|
||||
|
||||
import (
|
||||
"github.com/fatih/structs"
|
||||
)
|
||||
import "git.rosy.net.cn/baseapi/utils"
|
||||
|
||||
const (
|
||||
OrderStatusWait4Pay = 0 // 待支付
|
||||
@@ -52,7 +50,7 @@ func (a *API) CancelOrder(orderNo int64, specificCancelReason string) (err error
|
||||
}
|
||||
|
||||
func (a *API) DeliveryOrder(orderDeliveryInfo *DeliveryOrder) (err error) {
|
||||
apiParams := structs.Map(orderDeliveryInfo)
|
||||
apiParams := utils.Struct2MapByJson(orderDeliveryInfo)
|
||||
// baseapi.SugarLogger.Debug(utils.Format4Output(apiParams, false))
|
||||
_, err = a.AccessAPI("order/deliveryOrder", apiParams)
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user