Переглянути джерело

Merge branch 'dev/v4.8.49_dx' of qmx/jy into feature/v4.8.49

duxin 2 роки тому
батько
коміт
7630e6fd0c

+ 1 - 2
src/jfw/modules/subscribepay/src/service/salesCreateOrder.go

@@ -210,7 +210,7 @@ func (this *SalesCreateOrder) CreateBySeller() {
 		wxUrl := fmt.Sprintf(config.Config.WebSiteParameter.WeChatUrl, inserMap.OrderCode)
 		go util.SendStationMessages(config.Config.WebSiteParameter.Addr, userid, config.Config.WebSiteParameter.Action,
 			"10", config.Config.WebSiteParameter.Title, config.Config.WebSiteParameter.Content,
-			pcUrl, appUrl, appUrl, wxUrl, inserMap)
+			pcUrl, appUrl, appUrl, wxUrl, inserMap.OrderCode, inserMap.VipType, inserMap.OrderMoney)
 
 		if i_discountId > 0 {
 			go util.FindUserLotteryId(userid, orderid, i_discountId)
@@ -425,7 +425,6 @@ func (this *SalesCreateOrder) GetSubBuyMsg() {
 		if rData == nil || len(*rData) == 0 {
 			return &entity.FuncResult{false, errors.New("获取信息失败"), nil}
 		}
-		log.Println("11111111", *rData)
 		var isread = false
 		if (*rData)["isread"] != nil {
 			isread = (*rData)["isread"].(bool)

+ 3 - 4
src/jfw/modules/subscribepay/src/util/sellerOrder.go

@@ -4,7 +4,6 @@ import (
 	"encoding/json"
 	"fmt"
 	"io/ioutil"
-	"jy/src/jfw/modules/subscribepay/src/entity"
 	"net/http"
 	"net/url"
 	"time"
@@ -97,18 +96,18 @@ iosUrl		IOS消息链接
 weChatUrl	微信消息链接
 _token	是
 */
-func SendStationMessages(href, userId, action, msgType, title, content, link, androidUrl, iosUrl, weChatUrl string, orderInfo *entity.OrderInfo) {
+func SendStationMessages(href, userId, action, msgType, title, content, link, androidUrl, iosUrl, weChatUrl, OrderCode string, VipType, OrderMoney int) {
 	//websiteInformation := -1
 	var (
 		ret  MessageRet
 		cont []byte
 	)
 	name := "超级订阅"
-	if orderInfo.VipType == 1 {
+	if VipType == 1 {
 		name = "超级订阅(续费)"
 	}
 	pushHref := fmt.Sprintf("%s?_action=%s&userIds=%s&msgType=%s&title=%s&content=%s&link=%s&sendMode=2&sendTime=%s&androidUrl=%s&iosUrl=%s&weChatUrl=%s&_token=12311&reqSource=1&callPlatform=dyhxd&name=%s&orderid=%s&ordermoney=%d&details=您的订单%s处于未支付状态,为了使您获取更多...",
-		href, action, userId, msgType, title, content, link, NowFormat(Date_Short_Layout), androidUrl, iosUrl, weChatUrl, name, orderInfo.OrderCode, orderInfo.OrderMoney, orderInfo.OrderCode)
+		href, action, userId, msgType, title, content, link, NowFormat(Date_Short_Layout), androidUrl, iosUrl, weChatUrl, name, OrderCode, OrderMoney, OrderCode)
 	log.Info("href:", pushHref)
 	log.Println(pushHref)
 	resp, err := http.Get(pushHref)