aa
This commit is contained in:
@@ -48,6 +48,7 @@ var (
|
||||
"reuse/sc/product/retail/r/getStandardProductListWithCond": orderURL,
|
||||
"api/sg/promotion/invite/centerList": actURL,
|
||||
"api/invite/detail": actURL,
|
||||
"v2/logon/setToken": orderURL,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -105,6 +106,10 @@ func (a *API) AccessUserPage(subURL string, params map[string]interface{}) (retV
|
||||
return a.AccessUserPage2(subURL, params, true)
|
||||
}
|
||||
|
||||
func (a *API) AccessUserPage3(subURL string, params map[string]interface{}) (retVal map[string]interface{}, err error) {
|
||||
return a.AccessUserPage2(subURL, params, false)
|
||||
}
|
||||
|
||||
func (a *API) GetStoreList(lng, lat float64) (shopList []*ListShopItem, err error) {
|
||||
params := map[string]interface{}{
|
||||
"sortId": 1,
|
||||
@@ -438,3 +443,20 @@ func (a *API) GetStandardProductListWithCond(upc string) (getStandardProductList
|
||||
}
|
||||
return getStandardProductListWithCondResult, err
|
||||
}
|
||||
|
||||
func (a *API) SetTokenPage() (err error) {
|
||||
params := map[string]interface{}{
|
||||
"acctId": 57396785,
|
||||
"wmPoiId": -1,
|
||||
"bsid": "y-5VaK3uFxP705tpXsnJPee2sJc9dJ23LmGwYmg2kCO81d9EjD7TJrUeflcJRrqRxg9DFCNGhrJSaWYSCgXvxg",
|
||||
"device_uuid": "!ac34e5d7-5472-47fd-b7c4-029c1f7e7576",
|
||||
"token": "1bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*",
|
||||
"region_version": 0,
|
||||
"region_id": "",
|
||||
}
|
||||
a.SetCookieWithStr(`
|
||||
uuid=350a86177dd64c43b875.1619071312.1.0.0; _lxsdk_cuid=178f88ba3cec8-0db6e384ebfa36-5b1f321a-1fa400-178f88ba3cec8; _lxsdk=178f88ba3cec8-0db6e384ebfa36-5b1f321a-1fa400-178f88ba3cec8; uuid_update=true; _ga=GA1.2.2092976141.1619502287; pushToken=04OVj3PayJdT62H_Irz4BXYfNQHh9N33gDO_WFnGaovs*; device_uuid=!ac34e5d7-5472-47fd-b7c4-029c1f7e7576; mtcdn=K; lsu=; e_u_id_3299326472=e5ae16afe444349d24af7d33b66620a1; wpush_server_url=wss://wpush.meituan.com; shopCategory=food; _lxsdk_s=17b15442f31-e81-89b-533%7C%7C187
|
||||
`)
|
||||
_, err = a.AccessUserPage3("v2/logon/setToken", params)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user