|
|
@@ -3,6 +3,7 @@ package wx_mp
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
+ "time"
|
|
|
|
|
|
"github.com/astaxie/beego"
|
|
|
|
|
|
@@ -121,7 +122,7 @@ type Template3MessageData struct {
|
|
|
Kerword3 DataKeywordValue `json:"keyword3"`
|
|
|
}
|
|
|
|
|
|
-const TakeCashSubscribeTemplateId = "pmQeRrQUpBvt2jgDF4XwSEfDd7n2Gnyk8k_au1G6wP8"
|
|
|
+const TakeCashSubscribeTemplateId = "L073dR84XibBZNxfvTkvTIemd7JAbj5o2Og7-VBAiX8"
|
|
|
|
|
|
type SubscribeDataValue struct {
|
|
|
Value string `json:"value"`
|
|
|
@@ -152,10 +153,10 @@ func SendTakeCashArrivedSubscribe(openid string, orderId, withdrawAmount, fee, a
|
|
|
return nil
|
|
|
}
|
|
|
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)
|
|
|
}
|