1
This commit is contained in:
@@ -65,8 +65,8 @@ func (a *API) MsgSend(pushContent string) (interface{}, error) {
|
||||
// SetPoiIMStatus 设置门店IM线上状态 0-关闭 1-开启
|
||||
func (a *API) SetPoiIMStatus(appPoiCode string, imStatus int) error {
|
||||
_, err := a.AccessAPI("wm/IM/setPoiIMStatus", false, map[string]interface{}{
|
||||
"app_poi_code": appPoiCode,
|
||||
"online_status": imStatus,
|
||||
"app_poi_code": appPoiCode,
|
||||
"im_status": imStatus,
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -20,13 +20,14 @@ func init() {
|
||||
baseapi.Init(sugarLogger)
|
||||
|
||||
// 菜市
|
||||
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||
|
||||
// 果园
|
||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||
|
||||
//商超
|
||||
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_n_YVCkjFuV_0-76UFfNKCg") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_r36FEse6_ywebQI65FNNWA") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
cookieStr := `
|
||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||
`
|
||||
|
||||
@@ -455,10 +455,11 @@ type CategoryAttrValueListResult struct {
|
||||
//https://open-shangou.meituan.com/home/docDetail/387
|
||||
func (a *API) CategoryAttrValueList(attr_id int64, keyword string) (categoryAttrValueListResult []*CategoryAttrValueListResult, err error) {
|
||||
result, err := a.AccessAPI("gw/category/attr/value/list", true, map[string]interface{}{
|
||||
"attr_id": attr_id,
|
||||
"keyword": keyword,
|
||||
"page_num": 1,
|
||||
"page_size": 20,
|
||||
"attr_id": attr_id,
|
||||
"keyword": keyword,
|
||||
"page_num": 1,
|
||||
"page_size": 20,
|
||||
"category_type": 1,
|
||||
})
|
||||
if err == nil {
|
||||
utils.Map2StructByJson(result, &categoryAttrValueListResult, false)
|
||||
|
||||
@@ -387,7 +387,7 @@ func TestCategoryAttrList(t *testing.T) {
|
||||
|
||||
//特殊属性查询
|
||||
func TestCategoryAttrValueList(t *testing.T) {
|
||||
result, err := api.CategoryAttrValueList(1200000094, "青团")
|
||||
result, err := api.CategoryAttrValueList(1200000088, "散装糖果")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user