This commit is contained in:
richboo111
2023-09-06 11:28:59 +08:00
parent 269d0bd8b5
commit 7af6a77d9b
3 changed files with 22 additions and 21 deletions

View File

@@ -65,8 +65,8 @@ func (a *API) MsgSend(pushContent string) (interface{}, error) {
// SetPoiIMStatus 设置门店IM线上状态 0-关闭 1-开启 // SetPoiIMStatus 设置门店IM线上状态 0-关闭 1-开启
func (a *API) SetPoiIMStatus(appPoiCode string, imStatus int) error { func (a *API) SetPoiIMStatus(appPoiCode string, imStatus int) error {
_, err := a.AccessAPI("wm/IM/setPoiIMStatus", false, map[string]interface{}{ _, err := a.AccessAPI("wm/IM/setPoiIMStatus", false, map[string]interface{}{
"app_poi_code": appPoiCode, "app_poi_code": appPoiCode,
"online_status": imStatus, "im_status": imStatus,
}) })
return err return err
} }

File diff suppressed because one or more lines are too long

View File

@@ -20,13 +20,13 @@ func init() {
baseapi.Init(sugarLogger) baseapi.Init(sugarLogger)
// 菜市 // 菜市
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "") api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
// 果园 // 果园
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "") //api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超 //商超
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_r36FEse6_ywebQI65FNNWA") //token_n4TwqCntWWuvQwAawzxC0w //api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_r36FEse6_ywebQI65FNNWA") //token_n4TwqCntWWuvQwAawzxC0w
cookieStr := ` cookieStr := `
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1; acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
` `