Pārlūkot izejas kodu

update new mpappid

abiao 4 gadi atpakaļ
vecāks
revīzija
79a89b5573

+ 2 - 2
go/gopath/src/fohow.com/libs/wx_mp/event.go

@@ -157,8 +157,8 @@ func HandleWithEvent(ctx *context.Context, server, openid string, mixedMessage *
 				switch pushWath.PushType {
 				// case channel_gzh_qrcode_model.AFTER_SUB_PUSH_POSTER:
 				case channel_gzh_qrcode_model.AFTER_SUB_PUSH_IMAGE:
-					//imgPath := fmt.Sprintf("%s/%d.jpg", pushWath.Cover, cq.SceneId)
-					imgPath := pushWath.Cover
+					imgPath := fmt.Sprintf("%s/%d.jpg", pushWath.Cover, cq.SceneId)
+					//imgPath := pushWath.Cover
 					xml.NewEncoder(resp).Encode(sendImg(server, openid, imgPath, gzh.AppId, gzh.AppSecret))
 					return nil
 				case channel_gzh_qrcode_model.AFTER_SUB_PUSH_TEXT:

+ 3 - 2
go/gopath/src/fohow.com/libs/wx_mp/text.go

@@ -2,6 +2,7 @@ package wx_mp
 
 import (
 	"encoding/xml"
+	"fmt"
 	"net/http"
 	// "os"
 	// "regexp"
@@ -78,8 +79,8 @@ func HandleWithText(server, openid string, mixedMessage *mp.MixedMessage,
 		}
 		switch keyWordItem.PushType {
 		case key_word_push_model.KEY_WORD_PUSH_IMAGE:
-			//imgPath := fmt.Sprintf("%s/%d.jpg", keyWordItem.Cover, keyWordItem.Id)
-			imgPath := keyWordItem.Cover
+			imgPath := fmt.Sprintf("%s/%d.jpg", keyWordItem.Cover, keyWordItem.Id)
+			//imgPath := keyWordItem.Cover
 			beego.BeeLogger.Warn("key word push img path: %s", imgPath)
 			xml.NewEncoder(resp).Encode(sendImg(server, openid, imgPath, gzh.AppId, gzh.AppSecret))
 			return nil