|
@@ -171,32 +171,35 @@ func SendWxMsgWithCygxProductInterior(productInteriorId int) (err error) {
|
|
|
err = errors.New("获取所有有权的用户的 openid失败" + e.Error())
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ var industrialName string
|
|
|
+
|
|
|
+ industrialList, e := cygx.GetProductInteriorIndustrialGroupManagementList(productInteriorId)
|
|
|
+ if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
+ err = errors.New("GetProductInteriorIndustrialGroupManagementList,Err:" + e.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if len(industrialList) == 0 {
|
|
|
+ industrialName = detail.ChartPermissionName
|
|
|
+ } else {
|
|
|
+
|
|
|
+
|
|
|
+ for _, vindustr := range industrialList {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ industrialName += vindustr.IndustryName + ";"
|
|
|
+ }
|
|
|
+ industrialName = strings.TrimRight(industrialName, ";")
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
@@ -209,14 +212,14 @@ func SendWxMsgWithCygxProductInterior(productInteriorId int) (err error) {
|
|
|
|
|
|
|
|
|
|
|
|
- mapUserIdChooseSend := make(map[int]int)
|
|
|
- chooseSendtList, err := cygx.GetCygxXzsChooseSend("")
|
|
|
- if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
- return err
|
|
|
- }
|
|
|
- for _, v := range chooseSendtList {
|
|
|
- mapUserIdChooseSend[v.UserId] = v.UserId
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
openIdArr := make([]string, len(openidPowerList))
|
|
|
for i, v := range openidPowerList {
|
|
|
|
|
@@ -229,8 +232,9 @@ func SendWxMsgWithCygxProductInterior(productInteriorId int) (err error) {
|
|
|
|
|
|
openIdArr[i] = v.OpenId
|
|
|
}
|
|
|
+
|
|
|
first := "您关注的赛道,有新的报告发布/更新,欢迎查看"
|
|
|
- keyword1 := "【" + detail.ChartPermissionName + "】有报告发布/更新"
|
|
|
+ keyword1 := "【" + industrialName + "】有报告发布/更新"
|
|
|
keyword2 := detail.Title
|
|
|
keyword3 := utils.TimeRemoveHms2(detail.PublishTime)
|
|
|
keyword4 := detail.Abstract
|