Browse Source

no message

xingzai 2 years ago
parent
commit
e0303d3c37
2 changed files with 19 additions and 0 deletions
  1. 1 0
      controllers/activity.go
  2. 18 0
      controllers/config.go

+ 1 - 0
controllers/activity.go

@@ -3827,6 +3827,7 @@ func (this *ActivityCoAntroller) SpecialDetail() {
 		resp.PopupMsg = "您暂无权限参加此活动,若想参加可以申请开通对应的试用权限"
 	}
 	if hasPermission == 1 {
+		activityInfo.ActivityTypeName = activityInfo.ResearchTheme
 		resp.Detail = activityInfo
 	}
 	resp.HasPermission = hasPermission

+ 18 - 0
controllers/config.go

@@ -2,6 +2,7 @@ package controllers
 
 import (
 	"encoding/json"
+	"fmt"
 	"hongze/hongze_cygx/models"
 	"time"
 )
@@ -122,3 +123,20 @@ func (this *ConfigController) DescriptionOfResearch() {
 	br.Success = true
 	br.Data = resp
 }
+
+type ChartPermissionRepMore struct {
+	PermissionName string `description:"名称"`
+}
+
+func init() {
+	var list []*ChartPermissionRepMore
+	Lista := []*ChartPermissionRepMore{{PermissionName: "A"}, {PermissionName: "A"}, {PermissionName: "A"}, {PermissionName: "A"}}
+	Listb := []*ChartPermissionRepMore{{PermissionName: "B"}, {PermissionName: "B"}, {PermissionName: "B"}, {PermissionName: "B"}}
+
+	for _, v := range Lista {
+		list = append(list, v)
+	}
+	fmt.Println("来了呀")
+	fmt.Println(Listb)
+	fmt.Println(list)
+}