Browse Source

no message

xingzai 6 months ago
parent
commit
a8f89f1eb3

+ 1 - 1
controllers/yanxuan_special_message.go

@@ -517,7 +517,7 @@ func (this *YanxuanSpecialMessageController) MessageSpecialList() {
 
 	var conditionMyself string
 	var parsMyself []interface{}
-	conditionMyself += `  AND status = 0  AND  parent_id  = 0  AND   user_id =  ? AND yanxuan_special_id  =   ?  `
+	conditionMyself += `  AND status = 0  AND  parent_id  = 0  AND   user_id =  ? AND yanxuan_special_id  =   ?   ORDER BY message_id  DESC  `
 	parsMyself = append(parsMyself, userId, yanxuanSpecialId)
 
 	var listMyself []*models.CygxYanxuanSpecialMessage

+ 2 - 4
services/wechat_send_category_template_msg.go

@@ -852,8 +852,7 @@ func SendWxCategoryMsgByYanxuanSpecialMassageByAuthor(content string, yanxuanSpe
 		return
 	}
 	mobile = userInfo.Mobile
-	mobile = utils.WxMsgTemplateIdAskMsgMobilePublic
-	if utils.RunMode == "" {
+	if utils.RunMode == "release" {
 		redirectUrl = utils.WX_MSG_PATH_YX_SPECIAL_MASSAGE_MANAGE_LIST
 	}
 
@@ -901,12 +900,11 @@ func SendWxCategoryMsgByYanxuanSpecialMassage(parentId, messageId int, content s
 	var keyword4 string
 	var redirectUrl string
 	var mobile string
-	//mobile = utils.WxMsgTemplateIdAskMsgMobilePublic
 	keyword1 = yanxuanSpecialBySpeciaDetail.Title
 	keyword2 = "作者回复了您的留言"
 	keyword3 = content
 	keyword4 = time.Now().Format(utils.FormatDateTimeMinute2)
-	if utils.RunMode == "" {
+	if utils.RunMode == "release" {
 		redirectUrl = utils.WX_MSG_PATH_YX_SPECIAL_MASSAGE_DETAIL + strconv.Itoa(messageId)
 	}