This commit is contained in:
邹宗楠
2024-04-03 16:39:15 +08:00
parent 3f97450f12
commit f3fc203a1a
3 changed files with 4 additions and 7 deletions

View File

@@ -20,13 +20,13 @@ func init() {
baseapi.Init(sugarLogger)
// 菜市
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
// 果园
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_lygKiWMoozaEx-w1m9ZMmw") //token_n4TwqCntWWuvQwAawzxC0w
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_lygKiWMoozaEx-w1m9ZMmw") //token_n4TwqCntWWuvQwAawzxC0w
cookieStr := `
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
`

View File

@@ -307,9 +307,6 @@ func (a *API) RetailBatchInitData(trackInfo, poiCode string, foodDataList []map[
failedFoodList, err = handleRetailBatchResult(result)
}
if err != nil {
globals.SugarLogger.Debugf("========err := %v", err)
}
return failedFoodList, err
}

View File

@@ -307,10 +307,10 @@ func TestErrList(t *testing.T) {
func TestUpdateSkuBoxFee(t *testing.T) {
api.RetailBatchInitData(utils.GetUUID(), "2461720", []map[string]interface{}{
map[string]interface{}{
"app_spu_code": "22509",
"app_spu_code": "23923",
"skus": []map[string]interface{}{
{
"sku_id": "22509",
"sku_id": "23923",
"ladder_box_num": "0",
"ladder_box_price": "0",
},