Просмотр исходного кода

fix: update withdraw subscribe template

Codex 1 месяц назад
Родитель
Сommit
064ccc27ec
1 измененных файлов с 6 добавлено и 5 удалено
  1. 6 5
      go/gopath/src/fohow.com/libs/wx_mp/xcx.go

+ 6 - 5
go/gopath/src/fohow.com/libs/wx_mp/xcx.go

@@ -3,6 +3,7 @@ package wx_mp
 import (
 import (
 	"encoding/json"
 	"encoding/json"
 	"fmt"
 	"fmt"
+	"time"
 
 
 	"github.com/astaxie/beego"
 	"github.com/astaxie/beego"
 
 
@@ -121,7 +122,7 @@ type Template3MessageData struct {
 	Kerword3 DataKeywordValue `json:"keyword3"`
 	Kerword3 DataKeywordValue `json:"keyword3"`
 }
 }
 
 
-const TakeCashSubscribeTemplateId = "pmQeRrQUpBvt2jgDF4XwSEfDd7n2Gnyk8k_au1G6wP8"
+const TakeCashSubscribeTemplateId = "L073dR84XibBZNxfvTkvTIemd7JAbj5o2Og7-VBAiX8"
 
 
 type SubscribeDataValue struct {
 type SubscribeDataValue struct {
 	Value string `json:"value"`
 	Value string `json:"value"`
@@ -152,10 +153,10 @@ func SendTakeCashArrivedSubscribe(openid string, orderId, withdrawAmount, fee, a
 		return nil
 		return nil
 	}
 	}
 	page := "packageUser/pages/user/withdraw/withdraw"
 	page := "packageUser/pages/user/withdraw/withdraw"
-	data := TakeCashArrivedSubscribeData{
-		Amount3: SubscribeDataValue{Value: formatFen(withdrawAmount)},
-		Amount4: SubscribeDataValue{Value: formatFen(fee)},
-		Amount5: SubscribeDataValue{Value: formatFen(arriveAmount)},
+	data := map[string]SubscribeDataValue{
+		"date1":   {Value: time.Now().Format("2006-01-02 15:04")},
+		"amount3": {Value: formatFen(withdrawAmount)},
+		"thing5":  {Value: "已审核 ,待您确认后到帐!"},
 	}
 	}
 	return SendXcxSubscribeMessage(openid, TakeCashSubscribeTemplateId, page, data)
 	return SendXcxSubscribeMessage(openid, TakeCashSubscribeTemplateId, page, data)
 }
 }