Browse Source

包标的物修改

Jianghan 10 tháng trước cách đây
mục cha
commit
5bec990492
2 tập tin đã thay đổi với 14 bổ sung5 xóa
  1. 13 4
      src/front/remark.go
  2. 1 1
      src/front/user.go

+ 13 - 4
src/front/remark.go

@@ -376,12 +376,21 @@ func setPaceMap(info map[string]interface{}, confpack []map[string]interface{},
 					for _, v := range plist {
 						var inputs []interface{}
 						v1 := v.(map[string]interface{})
-						for key, value := range v1 {
+						//for key, value := range v1 {
+						//	tp := map[string]interface{}{
+						//		"key":      key,
+						//		"descript": mm[key],
+						//	}
+						//	tp["value"] = value
+						//	tp["status"] = status
+						//	inputs = append(inputs, tp)
+						//}
+						for k1, d1 := range mm {
 							tp := map[string]interface{}{
-								"key":      key,
-								"descript": mm[key],
+								"key":      k1,
+								"descript": d1,
 							}
-							tp["value"] = value
+							tp["value"] = v1[k1]
 							tp["status"] = status
 							inputs = append(inputs, tp)
 						}

+ 1 - 1
src/front/user.go

@@ -693,7 +693,7 @@ func (f *Front) UserTaskList() {
 		query := map[string]interface{}{
 			"s_stype": "user",
 		}
-		if s_role == "4" {
+		if s_role == "4" || s_role == "3" {
 			query["s_personid"] = s_personid
 		} else if s_role == "2" || s_role == "1" {
 			query["s_groupid"] = gid