|
@@ -209,3 +209,17 @@ func DeleteTpassCookie(info models.CompanyInfo) {
|
|
|
}
|
|
|
logger.Info("删除key:" + tsessionKey + "结果: " + string(bys))
|
|
|
}
|
|
|
+
|
|
|
+type SessionInfo struct {
|
|
|
+ URL string //页面URL API接口地址
|
|
|
+ Selector string //选择器 API返回结果路径
|
|
|
+ SelectorValue string //每个选择器对应的值 API对应的企业值
|
|
|
+ Cookies string //cookies
|
|
|
+ Area variable.Area
|
|
|
+ Api bool
|
|
|
+ ApiURL string
|
|
|
+ ApiMethod string
|
|
|
+ ApiParam string
|
|
|
+ ApiHeader map[string]string
|
|
|
+ Valid int //新版登录的cookie是否可用,仅获取时赋值
|
|
|
+}
|