更新研发

This commit is contained in:
hoteas
2022-01-23 05:13:19 +08:00
parent 29a84db736
commit cea7e57409
111 changed files with 11587 additions and 8 deletions
+13 -1
View File
@@ -2,10 +2,12 @@ package app
import (
. "../../../hotime"
. "../../../hotime/common"
. "../../common"
"time"
)
var analyseCtr = Ctr{
"home_data": func(this *Context) {
orgId := ObjToInt(this.Req.FormValue("org_id"))
if orgId == 0 {
@@ -146,6 +148,16 @@ var analyseCtr = Ctr{
res["upload_data"] = res.GetMap("upload_data")
res["collect_data"] = res.GetMap("collect_data")
if res.GetMap("collect_data") == nil {
path := "company" + Md5(res.GetString("name")) + time.Now().Format("/200601021504.json")
data := getCompany(res.GetString("name"), this.Config.GetString("tpt")+"/"+path)
if len(data) != 0 {
data["path"] = path
this.Db.Update("company", Map{"collect_data": data.ToJsonString()}, Map{"id": res.GetCeilInt("id")})
res["collect_data"] = data
}
}
this.Display(0, res)
},