京东page的cookie可能有问题

This commit is contained in:
苏尹岚
2020-03-06 13:46:04 +08:00
parent 44eb85a488
commit 15f0be1b44
7 changed files with 62 additions and 35 deletions

View File

@@ -201,6 +201,16 @@ func GetCheckVendorCookie(ctx *jxcontext.Context, vendorIDs []int, isAuto bool)
flag = true
}
}
result2, err2 := api.JdPageAPI.GetCorporationInfo("11926674", "92510108MA68KK3M8P")
if err2 != nil || result2 == nil {
cc := &CheckCookie{}
cc.VendorID = v
cc.VendorOrgCode = "京东page账号"
cc.Status = "无效"
ccList = append(ccList, cc)
errMsg += fmt.Sprintf(" 京东page账号:的Cookie无效了", vv)
flag = true
}
}
cc.VendorID = v
cc.VendorOrgCode = vv