This commit is contained in:
邹宗楠
2025-08-18 14:15:47 +08:00
parent a315351658
commit 3f3dc97058
5 changed files with 50 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import (
"encoding/json"
"errors"
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"net/http"
"reflect"
"sort"
@@ -209,6 +210,7 @@ func (a *API) AccessAPI2(apiStr string, jdParams map[string]interface{}, traceIn
} else {
fullURL := utils.GenerateGetURL(a.baseURL, apiStr, nil)
// baseapi.SugarLogger.Debug(utils.Map2URLValues(params).Encode())
globals.SugarLogger.Debugf("-----paramsparams- :%s", utils.Format4Output(params, false))
request, _ = http.NewRequest(http.MethodPost, fullURL, strings.NewReader(utils.Map2URLValues(params).Encode()))
request.Header.Set("charset", "UTF-8")
request.Header.Set("Content-Type", "application/x-www-form-urlencoded")

View File

@@ -358,7 +358,6 @@ func (a *API) UpdateStoreInfo4Open2(updateParams *OpStoreParams, modifyCloseStat
delete(mapData, "serviceTimeStart1")
delete(mapData, "serviceTimeEnd1")
}
globals.SugarLogger.Debugf("-------mapdata := %s", utils.Format4Output(mapData, false))
_, err = a.AccessAPINoPage("store/updateStoreInfo4Open", mapData, nil, nil, nullResultParser)
if err != nil {
globals.SugarLogger.Debugf("九点半定时任务,更新门店错误: %v", err)