From 52b59bd60998e96822fa18744de1383982117c94 Mon Sep 17 00:00:00 2001 From: v03413 Date: Wed, 4 Feb 2026 15:12:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=92=B1=E5=8C=85=20other=5Fnotify=20=E4=BC=A0=E9=80=92?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/handler/admin/wallet.go | 11 ++++++----- web/src/views/wallet/wallet.vue | 6 +++++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/handler/admin/wallet.go b/app/handler/admin/wallet.go index b12b560..ce85bc5 100644 --- a/app/handler/admin/wallet.go +++ b/app/handler/admin/wallet.go @@ -13,10 +13,11 @@ type Wallet struct { } type wAddReq struct { - Name string `json:"name"` - Remark string `json:"remark"` - Address string `json:"address" binding:"required"` - TradeType string `json:"trade_type" binding:"required"` + Name string `json:"name"` + Remark string `json:"remark"` + Address string `json:"address" binding:"required"` + TradeType string `json:"trade_type" binding:"required"` + OtherNotify uint8 `json:"other_notify"` } type wModReq struct { @@ -57,7 +58,7 @@ func (Wallet) Add(ctx *gin.Context) { MatchAddr: strings.TrimSpace(req.Address), TradeType: req.TradeType, Status: model.WaStatusEnable, - OtherNotify: model.WaOtherDisable, + OtherNotify: req.OtherNotify, } if !wallet.IsValid() { diff --git a/web/src/views/wallet/wallet.vue b/web/src/views/wallet/wallet.vue index 3e2554d..d62b71d 100644 --- a/web/src/views/wallet/wallet.vue +++ b/web/src/views/wallet/wallet.vue @@ -437,7 +437,11 @@ const addWallet = async () => { if (state) return; try { - await addWalletAPI(addFrom.value); + const submitData = { + ...addFrom.value, + other_notify: addFrom.value.other_notify ?? 0 + }; + await addWalletAPI(submitData); open.value = false; getCommonTableList(); Notification.success("添加成功");