1
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user