Kaynağa Gözat

意见反馈微信回复

wangshan 9 yıl önce
ebeveyn
işleme
53d3338d33

+ 3 - 2
core/src/qfw/manage/feedback.go

@@ -8,6 +8,7 @@ import (
 	"fmt"
 	. "gopkg.in/mgo.v2/bson"
 	"qfw/coreutil"
+	"qfw/front"
 	"qfw/util"
 	. "qfw/util/mongodb"
 	. "qfw/util/msg"
@@ -147,9 +148,9 @@ func (s *SystemManage) Updateback() error {
 				openid := (*f)["s_m_openid"].(string)
 				s_result := "意见反馈处理结果"
 				if len(title) > 20 {
-					title = title[:20] + "..."
+					title = front.SubstrByByte(title, 40) + "..."
 				}
-				s_detail := "以下是对你提交“" + title + "”意见的回复内容"
+				s_detail := "以下是对你提交“" + title + "”意见的回复结果"
 				s_remark := s.GetString("s_opinion")
 				go func() {
 					coreutil.SendManagerNotifyMsg(&qrpc.NotifyMsg{Openid: openid, Title: s_result, Detail: s_detail, Remark: s_remark})

+ 1 - 1
core/src/timetask.json

@@ -1 +1 @@
-{"comment":{"c_rate":720,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-01-20 17:03:33"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-01-20 17:03:33"}},"marketisstart":true,"marketrate":300}
+{"comment":{"c_rate":720,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-01-20 17:50:08"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-01-20 17:50:08"}},"marketisstart":true,"marketrate":300}

+ 7 - 8
core/src/web/templates/swordfish/wxshare.html

@@ -15,13 +15,12 @@
 <body style="margin:0px;">
 <div style="width: 100%;height: 603px; margin: 0 auto;background: url(/wxswordfish/images/share-cj.png) no-repeat top center;overflow: hidden;background-size: 375px 603px">
 </div>
-<div style="max-width:375px; margin:auto;">
-<div style="float:left;">
-<img src="/front/weixinshare/{{.T.shareid}}" style="width:80px; height:80px;vertical-align:middle;" />
-</div>
-<div style="float:left;line-height:30px;margin-top:10px;width:75%;">
- 长按图片识别二维码<br/>回复“抽奖”,有机会抽取iPad mini
-</div>
-</div>
+<table align=center width=100%>
+	<tr>
+		<td width=80><img src="/front/weixinshare/{{.T.shareid}}" style="width:80px; height:80px;" /></td>
+		<td style="word-break:break-all;word-wrap:break-word;line-height:22px;max-width:210px;">
+ 长按图片识别二维码<br/>回复“抽奖”,有机会抽取iPad mini</td>
+	</tr>
+</table>
 </body>
 </html>