This commit is contained in:
邹宗楠
2023-02-25 14:20:43 +08:00
parent 719507863a
commit cf1578a2c8
12 changed files with 30 additions and 106 deletions

View File

@@ -4,7 +4,6 @@ package jdapi
import (
"encoding/json"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
)
const (
@@ -338,8 +337,6 @@ func (a *API) GetStoreInfoByStationNo2(storeNo string) (storeDetail *StoreDetail
// }
func (a *API) UpdateStoreInfo4Open2(updateParams *OpStoreParams, modifyCloseStatus bool) (err error) {
globals.SugarLogger.Debugf("=updateParams=========: %s", utils.Format4Output(updateParams, false))
globals.SugarLogger.Debugf("=modifyCloseStatus=========: %s", utils.Format4Output(modifyCloseStatus, false))
updateParams.Operator = utils.GetAPIOperator(updateParams.Operator)
mapData := utils.Struct2MapByJson(updateParams)
if !modifyCloseStatus {
@@ -360,7 +357,6 @@ func (a *API) UpdateStoreInfo4Open2(updateParams *OpStoreParams, modifyCloseStat
delete(mapData, "serviceTimeEnd1")
}
_, err = a.AccessAPINoPage("store/updateStoreInfo4Open", mapData, nil, nil, nullResultParser)
globals.SugarLogger.Debugf("=err=========: %s", utils.Format4Output(err, false))
return err
}
@@ -401,6 +397,17 @@ func (a *API) OrgReplyComment(orderID int64, storeID, content, replayPin string)
return err
}
// 根据城市编码查询区域信息列表接口
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=194&apiid=cc2a3b5d49e84f3eb41ee39a0afe33c3
func (a *API) GetNextLevelByType(areaCode int64, pin string) (interface{}, error) {
jdParams := map[string]interface{}{
"areaCode": areaCode,
"pin": pin,
}
result, err := a.AccessAPI("address/getNextLevelByType", jdParams)
return result, err
}
// 根据到家门店编码修改商家自动接单接口
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=194&apiid=5df446bb5ff14413965b8d702718dc48
func (a *API) UpdateStoreConfig4Open(stationNo string, isAutoOrder bool) (bool, error) {