From ed192a6383d9b07a8dacf41b1838d54fce0308f9 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 21 Aug 2023 15:42:53 +0800 Subject: [PATCH] update --- app/hdl/hdl_wx.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/hdl/hdl_wx.go b/app/hdl/hdl_wx.go index c3b6f82..cbe11cd 100644 --- a/app/hdl/hdl_wx.go +++ b/app/hdl/hdl_wx.go @@ -216,12 +216,12 @@ func DealCallBack(openId, ticket string) error { //4、发送微信红包 post, err := utils.CurlPost("http://pay.izhyin.com/wx/redPackage/index", map[string]string{ "openid": openId, - "amount": utils.Float64ToStr(utils.StrToFloat64(qrcodeWithBatchRecord.Amount) * 100), + "amount": utils.Int64ToStr(utils.StrToInt64(qrcodeWithBatchRecord.Amount) * 100), }, nil) utils.FilePutContents("send_redPackage", utils.SerializeStr(map[string]interface{}{ "args": map[string]string{ "openid": openId, - "amount": utils.Float64ToStr(utils.StrToFloat64(qrcodeWithBatchRecord.Amount) * 100), + "amount": utils.Int64ToStr(utils.StrToInt64(qrcodeWithBatchRecord.Amount) * 100), }, "resp": post, }))