验证各平台cookie是否失效

This commit is contained in:
苏尹岚
2020-01-16 15:20:30 +08:00
parent aa98b4b20b
commit 16b3cf8d02
3 changed files with 100 additions and 4 deletions

View File

@@ -44,5 +44,11 @@ func (c *EventController) GetOperateEvents() {
// @Failure 200 {object} controllers.CallResult
// @router /GetCheckVendorCookie [get]
func (c *EventController) GetCheckVendorCookie() {
var vendorIDList []int
c.callGetCheckVendorCookie(func(params *tEventGetCheckVendorCookieParams) (retVal interface{}, errCode string, err error) {
if jxutils.Strings2Objs(params.VendorIDs, &vendorIDList); err == nil {
retVal, err = event.GetCheckVendorCookie(params.Ctx, vendorIDList, false)
}
return retVal, "", err
})
}