Selaa lähdekoodia

fix: disable withdraw subscribe sends

Codex 1 kuukausi sitten
vanhempi
commit
8d5943c67f
1 muutettua tiedostoa jossa 1 lisäystä ja 11 poistoa
  1. 1 11
      go/gopath/src/fohow.com/libs/wx_mp/xcx.go

+ 1 - 11
go/gopath/src/fohow.com/libs/wx_mp/xcx.go

@@ -3,7 +3,6 @@ package wx_mp
 import (
 	"encoding/json"
 	"fmt"
-	"time"
 
 	"github.com/astaxie/beego"
 
@@ -149,16 +148,7 @@ type TakeCashArrivedSubscribeData struct {
 }
 
 func SendTakeCashStatusSubscribe(openid string, withdrawAmount int64, remark string) error {
-	if openid == "" {
-		return nil
-	}
-	page := "packageUser/pages/user/withdraw/withdraw"
-	data := map[string]SubscribeDataValue{
-		"date1":   {Value: time.Now().Format("2006-01-02 15:04")},
-		"amount3": {Value: formatFen(withdrawAmount)},
-		"thing5":  {Value: remark},
-	}
-	return SendXcxSubscribeMessage(openid, TakeCashSubscribeTemplateId, page, data)
+	return nil
 }
 
 func SendTakeCashArrivedSubscribe(openid string, orderId, withdrawAmount, fee, arriveAmount int64, state, packageInfo string) error {