Explorar el Código

关键词保存问题

WH01243 hace 2 años
padre
commit
505f666971
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/jfw/front/wxkeyset.go

+ 3 - 3
src/jfw/front/wxkeyset.go

@@ -162,7 +162,7 @@ func (m *Front) WxKeysetAjaxReq() {
 		saveData[fmt.Sprintf("%s.a_key", types)] = keyMaps
 	} else if reqType == "saveArea" { //保存信息范围
 		index = m.GetString("index")
-		saveData[types+"o.a_key."+index+".area"] = m.GetSlice("area")
+		saveData[types+".a_key."+index+".area"] = m.GetSlice("area")
 	} else if reqType == "saveInfotype" { //保存信息类型
 		index = m.GetString("index")
 		saveData[types+".a_key."+index+".infotype"] = m.GetSlice("infotype")
@@ -246,9 +246,9 @@ func (m *Front) WxKeysetAjaxReq() {
 			if ojy, _ := (*rd)["o_jy"].(map[string]interface{}); len(ojy) > 0 {
 				if ojy["i_new"] == nil {
 					if time.Unix(regtime, 0).After(optime) {
-						saveData["o_jy.i_new"] = 1
+						saveData[types+".i_new"] = 1
 					} else {
-						saveData["o_jy.i_new"] = 0
+						saveData[types+".i_new"] = 0
 					}
 				}
 				if ojy["a_key"] != nil {