This commit is contained in:
苏尹岚
2020-09-07 09:24:27 +08:00
parent e52b99a3cb
commit aa0489d434
5 changed files with 7 additions and 6 deletions

View File

@@ -85,7 +85,7 @@ func TestGetDistricts(t *testing.T) {
} }
func TestGetCoordinateFromAddress(t *testing.T) { func TestGetCoordinateFromAddress(t *testing.T) {
lng, lat, districtCode := autonaviAPI.GetCoordinateFromAddress("辽宁沈阳市浑南新区城区沈营大街743号金石小镇南园B16号楼2单元29-2号", "") lng, lat, districtCode := autonaviAPI.GetCoordinateFromAddress("重庆北碚区蔡家岗镇灯塔街5号金科城五十九区13-2-801", "")
t.Logf("lng:%f, lat:%f, districtCode:%d", lng, lat, districtCode) t.Logf("lng:%f, lat:%f, districtCode:%d", lng, lat, districtCode)
} }

View File

@@ -22,5 +22,5 @@ func init() {
} }
func TestConsumeInfo(t *testing.T) { func TestConsumeInfo(t *testing.T) {
fmt.Println(time.Now().Format("2006-01-02T15:04:05Z")) fmt.Println(time.Now().Second())
} }

View File

@@ -144,7 +144,7 @@ func TestUpdateStoreFreightConfigNew(t *testing.T) {
} }
func TestGetDeliveryRangeByStationNo(t *testing.T) { func TestGetDeliveryRangeByStationNo(t *testing.T) {
const testStoreID = "11732462" const testStoreID = "11738048"
result, err := api.GetDeliveryRangeByStationNo2(testStoreID) result, err := api.GetDeliveryRangeByStationNo2(testStoreID)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)

View File

@@ -98,6 +98,7 @@ type GetOrderResult struct {
FreightPrice string `json:"freightPrice"` FreightPrice string `json:"freightPrice"`
Pin string `json:"pin"` Pin string `json:"pin"`
IDSopShipmenttype string `json:"idSopShipmenttype"` IDSopShipmenttype string `json:"idSopShipmenttype"`
ScDT string `json:"scDT"`
} }
//查询单个订单 //查询单个订单
@@ -108,7 +109,7 @@ func (a *API) GetOrder(orderID int64, isStatus bool) (getOrderResult *GetOrderRe
params["optional_fields"] = `orderType,payType,orderTotalPrice,orderSellerPrice, params["optional_fields"] = `orderType,payType,orderTotalPrice,orderSellerPrice,
orderPayment,freightPrice,orderState,orderStateRemark, orderPayment,freightPrice,orderState,orderStateRemark,
orderStartTime,orderEndTime,orderRemark,consigneeInfo, orderStartTime,orderEndTime,orderRemark,consigneeInfo,
itemInfoList,pauseBizInfo,pin,idSopShipmenttype` itemInfoList,pauseBizInfo,pin,idSopShipmenttype,scDT`
if isStatus { if isStatus {
params["order_state"] = "WAIT_SELLER_STOCK_OUT,TRADE_CANCELED,PAUSE" params["order_state"] = "WAIT_SELLER_STOCK_OUT,TRADE_CANCELED,PAUSE"
} }

View File

@@ -16,7 +16,7 @@ func TestOrderViewStatus(t *testing.T) {
} }
func TestOrderGetOrderDetail(t *testing.T) { func TestOrderGetOrderDetail(t *testing.T) {
result, err := api.OrderGetOrderDetail(73322892924405911, false) result, err := api.OrderGetOrderDetail(24617130273189791, false)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
@@ -27,7 +27,7 @@ func TestOrderGetOrderDetail(t *testing.T) {
} }
func TestOrderGetOrderDetail2(t *testing.T) { func TestOrderGetOrderDetail2(t *testing.T) {
result, err := api.OrderGetOrderDetail2(73322892924405911, false) result, err := api.OrderGetOrderDetail2(24617130273189791, false)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }