|
@@ -554,12 +554,13 @@ func (f *Front) Importfile() {
|
|
|
o["urgency"] = 0
|
|
|
}
|
|
|
o["platform"] = cells[9].Value
|
|
|
- estimate, _ := cells[10].Int()
|
|
|
- weigh, _ := cells[11].Int()
|
|
|
- o["estimate"] = estimate
|
|
|
+ o["area"] = cells[10].Value
|
|
|
+ o["city"] = cells[11].Value
|
|
|
+ o["district"] = cells[12].Value
|
|
|
+ weigh, _ := cells[13].Int()
|
|
|
o["weight"] = weigh
|
|
|
//存储表
|
|
|
- o["coll"] = cells[12].Value
|
|
|
+ o["coll"] = cells[14].Value
|
|
|
//导入默认字段
|
|
|
o["spidercompete"] = true
|
|
|
o["pendstate"] = 0
|
|
@@ -667,7 +668,7 @@ func pf(o map[string]interface{}) (bool, string) {
|
|
|
configModel := util.Config.Model[s_model]
|
|
|
model := map[string]interface{}{}
|
|
|
for k, _ := range configModel {
|
|
|
- model[k] = ""
|
|
|
+ model[k] = qu.ObjToString(o[k])
|
|
|
}
|
|
|
param["model"] = model
|
|
|
param["next"] = o["next"]
|
|
@@ -684,7 +685,6 @@ func pf(o map[string]interface{}) (bool, string) {
|
|
|
param["spiderhistorymaxpage"] = 1
|
|
|
param["platform"] = o["platform"]
|
|
|
param["spidercompete"] = o["spidercompete"]
|
|
|
- param["estimate"] = o["estimate"]
|
|
|
param["weight"] = o["weight"]
|
|
|
param["pendstate"] = o["pendstate"]
|
|
|
//qu.Debug("param---", param)
|