1
This commit is contained in:
@@ -257,20 +257,8 @@ type StoreSkuInfo struct {
|
||||
|
||||
//42597433459
|
||||
func TestDeleteActSku(t *testing.T) {
|
||||
failedList2, err2 := api.RetailDiscountDelete2("6794526", 1001, []string{"42597433459"})
|
||||
failedList2, err2 := api.RetailDiscountDelete2("10540654", 1001, []string{"42597433459"})
|
||||
fmt.Println(utils.Format4Output(failedList2, false))
|
||||
fmt.Println(err2)
|
||||
|
||||
}
|
||||
func TestSync(t *testing.T) {
|
||||
aa := &struct {
|
||||
Token string `json:"token"`
|
||||
RefreshToken string `json:"refresh_token"`
|
||||
}{
|
||||
Token: "11",
|
||||
RefreshToken: "222",
|
||||
}
|
||||
|
||||
fmt.Println(utils.Struct2MapByJson(aa))
|
||||
|
||||
}
|
||||
|
||||
@@ -23,10 +23,10 @@ func init() {
|
||||
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||
|
||||
// 果园
|
||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||
api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||
|
||||
//商超
|
||||
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_ovY_D_9WSMGIT3bFAbNEDg") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_ovY_D_9WSMGIT3bFAbNEDg") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
cookieStr := `
|
||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user