From f2e10571b2000771e57d8de11f160cc684e565f9 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 5 Sep 2023 14:49:18 +0800 Subject: [PATCH] update --- app/db/model/qrcode_batch.go | 2 +- app/lib/wx/wx_official_account.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/db/model/qrcode_batch.go b/app/db/model/qrcode_batch.go index 2e5597f..32bbc25 100644 --- a/app/db/model/qrcode_batch.go +++ b/app/db/model/qrcode_batch.go @@ -4,7 +4,7 @@ type QrcodeBatch struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Name string `json:"name" xorm:"not null default '' comment('名称') VARCHAR(255)"` TotalNum int `json:"total_num" xorm:"not null default 0' comment('总数量') INT(11)"` - TotalAmount string `json:"total_amount" xorm:"not null default 0.00 comment('总金额') DECIMAL(6,2)"` + TotalAmount string `json:"total_amount" xorm:"not null default 0.00 comment('总金额') DECIMAL(8,2)"` State int32 `json:"state" xorm:"not null default 1 comment('状态(1:使用中 2:使用完 3:已过期 4:已作废)') TINYINT(1)"` ExpireDate string `json:"expire_date" xorm:"not null default 0000-00-00 comment('截止日期') CHAR(50)"` Memo string `json:"memo" xorm:"not null default '' comment('备注') VARCHAR(255)"` diff --git a/app/lib/wx/wx_official_account.go b/app/lib/wx/wx_official_account.go index c77c8ac..aae3777 100644 --- a/app/lib/wx/wx_official_account.go +++ b/app/lib/wx/wx_official_account.go @@ -65,7 +65,7 @@ func (officialAccount *OfficialAccount) QrcodeCreate(sceneStr string) (qrcodeUrl //}, nil) requestBody, _ := json.Marshal(map[string]interface{}{ "action_name": "QR_STR_SCENE", - "expire_seconds": "6000", + "expire_seconds": "2592000", //30天过期 "action_info": map[string]interface{}{ "scene": map[string]string{ "scene_str": sceneStr,