From 23544f7043604735b0b27cda4295973c8eb3e34f Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 25 Aug 2022 14:05:20 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v1.3.3=20=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E7=9A=84=E7=AC=AC=E4=B8=89=E6=96=B9=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 1 - pay/pay_test.go | 18 +++++------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/go.mod b/go.mod index 38efec8..f2905e6 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,6 @@ require ( github.com/go-sql-driver/mysql v1.6.0 github.com/gomodule/redigo v1.8.8 github.com/iGoogle-ink/gopay v1.5.36 - github.com/iGoogle-ink/gotil v1.0.20 github.com/pkg/errors v0.9.1 github.com/syyongx/php2go v0.9.6 go.uber.org/zap v1.16.0 diff --git a/pay/pay_test.go b/pay/pay_test.go index 49b226c..36bec64 100644 --- a/pay/pay_test.go +++ b/pay/pay_test.go @@ -4,6 +4,7 @@ import ( "code.fnuoos.com/go_rely_warehouse/zyos_go_pay.git/lib/icbc" "fmt" "testing" + "time" ) func TestPay(t *testing.T) { @@ -18,19 +19,10 @@ func TestPay(t *testing.T) { fmt.Println(channel.AppId) t.Log(channel.MasterNickname) } -func TestIcbc(t *testing.T) { - param := map[string]string{ - "name": "象揪巒", //客户姓名 - "mobile": "66732397", //手机号码 - "mobileArea": "853", //手机国际代码 853、852、86 *- - "optFlag": "1", // - "otp": "294056", - "cardNo": "5305068200048153", - "cardType": "C", - } - integral, err := icbc.ShowIntegral("10000000000000203505", "-----BEGIN PRIVATE KEY-----\nMIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCZBYj5SOjewCZ+\nGx2dAj/Lvp/TlDeVseoUl7V1X4K0jzAyo8kwY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NLchq35OTFQxo\nc1rVwGQm8S1R+/Zs/CHxIp7YiKgQU9zSmslVR9ANezEjVpH6gFTstaatM+j+qcVY\n6KzclJnSV8SJWv5aYV53715Nlcx+HcJ8J1YoPFibwW4ZAPJDpZRT2ehh28UCgYBv\nBeKEx4RFeFO0YLVXZlR+JEZ8PgQHyR2QDmg3qSN7qHBDEsg5frTtwZlcva/BIRCZ\nItaBJibeJ336NRYGf0ZaKeyI6KUBr0NQ9YSgnkSW/saa+TfXfhiQnO2XcqxxXd2J\nsASo+t6VOoLwraZwO/ki7p9DDb+iAfjo1UboyqW5iQKBgQCzXyhRfacrW0kgmEp6\nCWR0oQgD54aXj1JjUkEe+gE6E7LY9Cl+yAdHBYmyCzS014jNX93+Bpg1XhoR1knO\n78A8Q7sPCrP908ycKul668daDXHp55CGpScxsx3z9jJs5ori+ZncSDAnHf0T0OjX\n+nDJPGN/gp9/WqApT1L4SLlDxg==\n-----END PRIVATE KEY-----", param) - fmt.Println(integral) - fmt.Println(err) +func TestIcbc(t1 *testing.T) { + t:=time.Now() + stime := time.Date(t.Year(), t.Month(), t.Day(), t.Hour(), 0, 0, 0, t.Location()).Format("2006-1-02 15:04:05") + fmt.Println(stime) } func TestIcbcShow(t *testing.T) { param := map[string]string{