修改数据类型
This commit is contained in:
@@ -317,7 +317,7 @@ type CreateOrderReqParam struct {
|
|||||||
|
|
||||||
// 创建订单返回值
|
// 创建订单返回值
|
||||||
type CreateOrderRes struct {
|
type CreateOrderRes struct {
|
||||||
OrderId string `json:"order_id"` // 运单id
|
OrderId int64 `json:"order_id"` // 运单id
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询余额getAmount
|
// 查询余额getAmount
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ func (a *API) CreateOrder(createOrderParam *CreateOrderReqParam) (result string,
|
|||||||
if err := json.Unmarshal([]byte(utils.Interface2String(orderId)), res); err != nil {
|
if err := json.Unmarshal([]byte(utils.Interface2String(orderId)), res); err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
return res.OrderId, nil
|
return utils.Int64ToStr(res.OrderId), nil
|
||||||
}
|
}
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user