aa
This commit is contained in:
@@ -821,8 +821,8 @@ func (a *API) ShopList(pageNum int) (shopDetailResult *ShopListResult, err error
|
||||
"requestId": reqID,
|
||||
"pageNum": pageNum,
|
||||
"pageSize": 200,
|
||||
"categoryId1": 3,
|
||||
"categoryId2": 4,
|
||||
"categoryId1": 34,
|
||||
"categoryId2": 62,
|
||||
}, false)
|
||||
if err == nil {
|
||||
utils.Map2StructByJson(result["data"], &shopDetailResult, false)
|
||||
@@ -845,6 +845,34 @@ func (a *API) UpdateExpand(storeID int) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
//更新门店围栏等
|
||||
//https://porder.shop.jd.com/order/orderlist/allOrders
|
||||
func (a *API) CreateGisFence(storeID int) (err error) {
|
||||
reqID := time.Now().Unix()
|
||||
_, err = a.AccessStorePage2("https://o2o-stores.shop.jd.com/shop/createGisFence", map[string]interface{}{
|
||||
"storeIds": storeID,
|
||||
"kilometres": 3,
|
||||
"version": "1.0.0",
|
||||
"source": "pc",
|
||||
"requestId": reqID,
|
||||
}, false)
|
||||
return err
|
||||
}
|
||||
|
||||
//更新门店配送时效
|
||||
//https://porder.shop.jd.com/order/orderlist/allOrders
|
||||
func (a *API) UpdateDeliveryPromise(start, end string, storeID int) (err error) {
|
||||
_, err = a.AccessStorePage2("https://delivery.shop.jd.com/o2o/promise/update", map[string]interface{}{
|
||||
"storeIds": []int{storeID},
|
||||
"showCalendar": false,
|
||||
"openHoursEnd": end,
|
||||
"openHoursStart": start,
|
||||
"immediateDelivery": true,
|
||||
"agingType": 1,
|
||||
}, true)
|
||||
return err
|
||||
}
|
||||
|
||||
//上传图片
|
||||
//https://porder.shop.jd.com/order/orderlist/allOrders
|
||||
func (a *API) UploadImageNew(data []byte, fileName string) (jdURL string, err error) {
|
||||
|
||||
Reference in New Issue
Block a user