|
@@ -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)
|