|
@@ -7,6 +7,8 @@ import (
|
7
|
7
|
"spaceofcheng/services/utils"
|
8
|
8
|
"sync"
|
9
|
9
|
|
|
10
|
+ "github.com/astaxie/beego"
|
|
11
|
+
|
10
|
12
|
"github.com/zjxpcyc/tinyevent"
|
11
|
13
|
)
|
12
|
14
|
|
|
@@ -61,6 +63,9 @@ func getAllEvents(orgID, caseID string) (map[string][]string, error) {
|
61
|
63
|
return nil, err
|
62
|
64
|
}
|
63
|
65
|
|
|
66
|
+ beego.Error("=======================")
|
|
67
|
+ beego.Error(evts)
|
|
68
|
+
|
64
|
69
|
res := make(map[string][]string)
|
65
|
70
|
for _, evtSetting := range evts {
|
66
|
71
|
res[evtSetting.ActivityType] = make([]string, 0)
|
|
@@ -72,10 +77,14 @@ func getAllEvents(orgID, caseID string) (map[string][]string, error) {
|
72
|
77
|
}
|
73
|
78
|
|
74
|
79
|
for _, act := range acts {
|
|
80
|
+ beego.Error("---------->", act)
|
75
|
81
|
res[evtSetting.ActivityType] = append(res[evtSetting.ActivityType], act.ActiveType)
|
76
|
82
|
}
|
77
|
83
|
}
|
78
|
84
|
|
|
85
|
+ beego.Error("---------------")
|
|
86
|
+ beego.Error(res)
|
|
87
|
+
|
79
|
88
|
return res, nil
|
80
|
89
|
}
|
81
|
90
|
|