This commit is contained in:
邹宗楠
2024-04-03 11:08:13 +08:00
parent e0865653a0
commit 911a868b43
4 changed files with 5 additions and 4 deletions

View File

@@ -112,7 +112,6 @@ func TestShopBusStatusGet(t *testing.T) {
} }
} }
} }
} }
func TestShopOpen(t *testing.T) { func TestShopOpen(t *testing.T) {

View File

@@ -26,7 +26,7 @@ func init() {
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "") //api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超 //商超
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_tA8jruzFR0yxDF4p1qVN7A") //token_n4TwqCntWWuvQwAawzxC0w api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_lygKiWMoozaEx-w1m9ZMmw") //token_n4TwqCntWWuvQwAawzxC0w
cookieStr := ` cookieStr := `
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1; acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
` `

View File

@@ -231,7 +231,7 @@ func TestBatchSetPrice(t *testing.T) {
fmt.Println(err) fmt.Println(err)
} }
func TestRetailDelete(t *testing.T) { func TestRetailDelete(t *testing.T) {
poiCode := "17211186" poiCode := "18292160"
i := 0 i := 0
for { for {

View File

@@ -3,6 +3,7 @@ package weixinapi
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"git.rosy.net.cn/jx-callback/globals"
"math/rand" "math/rand"
"mime/multipart" "mime/multipart"
"net/http" "net/http"
@@ -91,7 +92,8 @@ func (a *API) AccessAPI(action string, params map[string]interface{}, body strin
} }
params2["access_token"] = accessToken params2["access_token"] = accessToken
} }
globals.SugarLogger.Debugf("===========param 2 := %s", utils.Format4Output(params2, false))
globals.SugarLogger.Debugf("===========api 2 := %s", utils.Format4Output(a, false))
fullURL := utils.GenerateGetURL(prodURL, action, params2) fullURL := utils.GenerateGetURL(prodURL, action, params2)
// baseapi.SugarLogger.Debug(fullURL) // baseapi.SugarLogger.Debug(fullURL)