1
This commit is contained in:
@@ -210,8 +210,8 @@ func (a *API) QueryOrder(partnerOrderCode string) (result *GetOrderDetailRes, er
|
|||||||
if err := json.Unmarshal([]byte(data["business_data"].(string)), &fnResult); err != nil {
|
if err := json.Unmarshal([]byte(data["business_data"].(string)), &fnResult); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
fnResult.OrderActualAmountCent += int64(utils.WayBillDeliveryMarkUp)
|
fnResult.OrderActualAmountCent += (int64(utils.WayBillDeliveryMarkUp) * 2)
|
||||||
fnResult.OrderTotalAmountCent += int64(utils.WayBillDeliveryMarkUp)
|
fnResult.OrderTotalAmountCent += (int64(utils.WayBillDeliveryMarkUp) * 2)
|
||||||
return fnResult, nil
|
return fnResult, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,14 +20,14 @@ func init() {
|
|||||||
baseapi.Init(sugarLogger)
|
baseapi.Init(sugarLogger)
|
||||||
|
|
||||||
// 菜市
|
// 菜市
|
||||||
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||||
|
|
||||||
// 果园
|
// 果园
|
||||||
// api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
// api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||||
|
|
||||||
//商超
|
//商超
|
||||||
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_vFHMcmYdq9AEhka8FHRHlw") //token_n4TwqCntWWuvQwAawzxC0w
|
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_vFHMcmYdq9AEhka8FHRHlw") //token_n4TwqCntWWuvQwAawzxC0w
|
||||||
cookieStr := `
|
cookieStr := `
|
||||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -120,10 +120,10 @@ func TestRetailListAll(t *testing.T) {
|
|||||||
|
|
||||||
// 删除所有门店商品
|
// 删除所有门店商品
|
||||||
func TestReloadStoreSku(t *testing.T) {
|
func TestReloadStoreSku(t *testing.T) {
|
||||||
result, err := api.RetailListAll("17814072")
|
result, err := api.RetailListAll("17924337")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
for i := 0; i < len(result); i++ {
|
for i := 0; i < len(result); i++ {
|
||||||
err := api.RetailDelete(utils.Int64ToStr(time.Now().Unix()), "17814072", result[i].AppFoodCode)
|
err := api.RetailDelete(utils.Int64ToStr(time.Now().Unix()), "17924337", result[i].AppFoodCode)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user