|
@@ -558,6 +558,8 @@ func (f *Front) Importfile() {
|
|
|
estimate, _ := cells[11].Int()
|
|
|
o["estimate"] = estimate
|
|
|
o["weight"] = weigh
|
|
|
+ //存储表
|
|
|
+ o["coll"] = cells[12].Value
|
|
|
//导入默认字段
|
|
|
o["spidercompete"] = true
|
|
|
o["pendstate"] = 0
|
|
@@ -608,7 +610,8 @@ func pf(o map[string]interface{}) (bool, string) {
|
|
|
AutoTpl["Base.SpiderMaxPage"],
|
|
|
AutoTpl["Base.SpiderRunRate"],
|
|
|
//AutoTpl["Base.Spider2Collection"],
|
|
|
- "bidding", //爬虫导入新建默认为bidding
|
|
|
+ //"bidding", //爬虫导入新建默认为bidding
|
|
|
+ qu.ObjToString(o["coll"]),
|
|
|
AutoTpl["Base.SpiderPageEncoding"],
|
|
|
AutoTpl["Base.SpiderStoreMode"],
|
|
|
AutoTpl["Base.SpiderStoreToMsgEvent"],
|
|
@@ -637,7 +640,6 @@ func pf(o map[string]interface{}) (bool, string) {
|
|
|
}
|
|
|
param := map[string]interface{}{}
|
|
|
param["param_common"] = common
|
|
|
- param["param_common"] = common
|
|
|
//向导模式
|
|
|
param["param_time"] = ptime
|
|
|
param["param_list"] = list
|