Explorar o código

意见反馈微信反馈信息

wangshan %!s(int64=8) %!d(string=hai) anos
pai
achega
a4069758cd

+ 18 - 8
core/src/qfw/manage/feedback.go

@@ -183,15 +183,25 @@ func (s *SystemManage) Updateback() error {
 			f := FindOne("user", "{'_id':'"+s_submitid+"'}")
 			if (*f)["s_m_openid"] != nil {
 				openid := (*f)["s_m_openid"].(string)
-				s_result := "意见反馈处理结果"
-				if len(title) > 20 {
-					title = front.SubstrByByte(title, 40) + "..."
+				if (*f)["i_appid"] == 2 {
+					s_result := "剑鱼客服回复了您的问题!"
+					s_detail := "问题回复"
+					s_remark := "  " + s.GetString("s_opinion")
+					s_submitdate := s.GetString("l_submitdate")
+					go func() {
+						coreutil.JyWeixinRpc.SendFeedbackNotifyMsg(&qrpc.NotifyMsg{Openid: openid, Title: s_result, Detail: s_detail, Date: s_submitdate, Remark: s_remark})
+					}()
+				} else {
+					s_result := "意见反馈处理结果"
+					if len(title) > 20 {
+						title = front.SubstrByByte(title, 40) + "..."
+					}
+					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})
+					}()
 				}
-				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})
-				}()
 			}
 
 		} else {

+ 1 - 0
core/src/web/templates/manage/feedbackcontent.html

@@ -107,6 +107,7 @@ background-color:#FFFFFF;
         <label id="col-sm-2" class="col-sm-2 control-label" for="name">问题提交时间:</label>
 	    <div class="col-sm-3">
         <span  style="background-color:#f0f0f0;" class="form-control">{{.T.l_submitdate}}</span>
+		<input name="l_submitdate" style="display:none;" value="{{.T.l_submitdate}}"/>
 		</div>
 		<div class="col-sm-4">
 		</div>