政企超链接开始集成
This commit is contained in:
@@ -3,6 +3,7 @@ package app
|
||||
import (
|
||||
. "../../../hotime"
|
||||
. "../../../hotime/common"
|
||||
"fmt"
|
||||
"time"
|
||||
//"strings"
|
||||
)
|
||||
@@ -21,7 +22,7 @@ var Question = Ctr{
|
||||
this.Display(3, "参数错误")
|
||||
return
|
||||
}
|
||||
data := this.Req.FormValue("data")
|
||||
data := this.Req.FormValue("question_data")
|
||||
|
||||
if data == "" {
|
||||
this.Display(3, "没有上传数据")
|
||||
@@ -31,8 +32,9 @@ var Question = Ctr{
|
||||
status := ObjToInt(this.Req.FormValue("status"))
|
||||
re := this.Db.Update("question_company", Map{"question_data": data, "status": status}, Map{"id": questionCompanyId})
|
||||
if re == 0 {
|
||||
this.Display(4, "没有更新信息!")
|
||||
return
|
||||
//this.Display(4, "没有更新信息!")
|
||||
fmt.Println(4, "没有更新信息!")
|
||||
//return
|
||||
}
|
||||
|
||||
this.Display(0, "更新成功")
|
||||
@@ -76,10 +78,9 @@ var Question = Ctr{
|
||||
|
||||
delete(v, "question")
|
||||
questionCompany["question"] = v
|
||||
|
||||
re = append(re, questionCompany)
|
||||
}
|
||||
|
||||
//user["questions"]=re
|
||||
this.Display(0, re)
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user