|
|
@@ -121,8 +121,6 @@ type Template3MessageData struct {
|
|
|
Kerword3 DataKeywordValue `json:"keyword3"`
|
|
|
}
|
|
|
|
|
|
-const TakeCashSubscribeTemplateId = "L073dR84XibBZNxfvTkvTIemd7JAbj5o2Og7-VBAiX8"
|
|
|
-
|
|
|
type SubscribeDataValue struct {
|
|
|
Value string `json:"value"`
|
|
|
}
|
|
|
@@ -141,27 +139,6 @@ type SubscribeMessageResponse struct {
|
|
|
ErrMsg string `json:"errmsg"`
|
|
|
}
|
|
|
|
|
|
-type TakeCashArrivedSubscribeData struct {
|
|
|
- Amount3 SubscribeDataValue `json:"amount3"`
|
|
|
- Amount4 SubscribeDataValue `json:"amount4"`
|
|
|
- Amount5 SubscribeDataValue `json:"amount5"`
|
|
|
-}
|
|
|
-
|
|
|
-func SendTakeCashStatusSubscribe(openid string, withdrawAmount int64, remark string) error {
|
|
|
- return nil
|
|
|
-}
|
|
|
-
|
|
|
-func SendTakeCashArrivedSubscribe(openid string, orderId, withdrawAmount, fee, arriveAmount int64, state, packageInfo string) error {
|
|
|
- if openid == "" || packageInfo == "" || !MerchantTransferStatePending(state) {
|
|
|
- return nil
|
|
|
- }
|
|
|
- return SendTakeCashStatusSubscribe(openid, withdrawAmount, "已审核 ,待您确认后到帐!")
|
|
|
-}
|
|
|
-
|
|
|
-func SendTakeCashTimeoutSubscribe(openid string, withdrawAmount int64) error {
|
|
|
- return SendTakeCashStatusSubscribe(openid, withdrawAmount, "超时未确认,请您重新提现!")
|
|
|
-}
|
|
|
-
|
|
|
func SendTemplateMessage(toUserOpenId string, templateId string, page string, formId string, data json.RawMessage, emphasisKeyword string) {
|
|
|
token := GetAccessToken(beego.AppConfig.String("WxFohowXcxAppId"), beego.AppConfig.String("WxFohowXcxAppSecret"))
|
|
|
beego.BeeLogger.Info("TestSendingTemplatemsgController got token: %s", token)
|