|
@@ -34,8 +34,8 @@ var (
|
|
//重点网站和正式环境
|
|
//重点网站和正式环境
|
|
isOnly4MainSite = "false"
|
|
isOnly4MainSite = "false"
|
|
browserDisableLoadResources = "ws://;wss://;.tof;.woff;.ico;.mp4;.zip;.rar;.exe;"
|
|
browserDisableLoadResources = "ws://;wss://;.tof;.woff;.ico;.mp4;.zip;.rar;.exe;"
|
|
- //serverAddress = "http://visualizeld.spdata.jianyu360.com/%s" //正式环境
|
|
|
|
- serverAddress = "http://127.0.0.1:8091/%s" //正式环境
|
|
|
|
|
|
+ serverAddress = "http://visualizeld.spdata.jianyu360.com/%s" //正式环境
|
|
|
|
+ //serverAddress = "http://127.0.0.1:8091/%s" //正式环境
|
|
|
|
|
|
//验证码服务
|
|
//验证码服务
|
|
serverCodeTimeOut int64 = 15
|
|
serverCodeTimeOut int64 = 15
|
|
@@ -50,7 +50,7 @@ var (
|
|
// wails build -ldflags="-X 'main.isOnly4MainSite=false'" -o="剑鱼可视化爬虫开发工具_正式.exe"
|
|
// wails build -ldflags="-X 'main.isOnly4MainSite=false'" -o="剑鱼可视化爬虫开发工具_正式.exe"
|
|
|
|
|
|
func init() {
|
|
func init() {
|
|
- //be.LoadConfig("./config.yaml")
|
|
|
|
|
|
+ //be.LoadConfig("config.yaml")
|
|
//从配置文件外,编译时设定浏览器排除加载资源。比配置文件优先级低
|
|
//从配置文件外,编译时设定浏览器排除加载资源。比配置文件优先级低
|
|
if browserDisableLoadResources != "" {
|
|
if browserDisableLoadResources != "" {
|
|
be.Cfg.DisableLoadResource = browserDisableLoadResources
|
|
be.Cfg.DisableLoadResource = browserDisableLoadResources
|
|
@@ -62,6 +62,9 @@ func init() {
|
|
if serverCodeTimeOut > 0 {
|
|
if serverCodeTimeOut > 0 {
|
|
be.Cfg.ServerCodeTimeOut = serverCodeTimeOut
|
|
be.Cfg.ServerCodeTimeOut = serverCodeTimeOut
|
|
}
|
|
}
|
|
|
|
+ if serverCodeAddress != "" {
|
|
|
|
+ be.Cfg.ServerCodeAddress = serverCodeAddress
|
|
|
|
+ }
|
|
if serverCodeFreeAddressOcr != "" {
|
|
if serverCodeFreeAddressOcr != "" {
|
|
be.Cfg.ServerCodeFreeAddressOcr = serverCodeFreeAddressOcr
|
|
be.Cfg.ServerCodeFreeAddressOcr = serverCodeFreeAddressOcr
|
|
}
|
|
}
|
|
@@ -80,7 +83,6 @@ func init() {
|
|
if be.Cfg.IsOnly4MainSite {
|
|
if be.Cfg.IsOnly4MainSite {
|
|
serverAddress = "http://visualize.spdata.jianyu360.com/%s" //重点网站
|
|
serverAddress = "http://visualize.spdata.jianyu360.com/%s" //重点网站
|
|
}
|
|
}
|
|
-
|
|
|
|
qu.Debug("重点网站:", be.Cfg.IsOnly4MainSite, serverAddress)
|
|
qu.Debug("重点网站:", be.Cfg.IsOnly4MainSite, serverAddress)
|
|
}
|
|
}
|
|
|
|
|