From 842edad966556b71dc6148c87e8ca94d63800ec6 Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Mon, 1 Dec 2025 00:52:27 -0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=94=A8=E6=88=B7=E9=80=BB=E8=BE=91):?= =?UTF-8?q?=20=E7=A7=BB=E9=99=A4=E8=AE=BE=E5=A4=87=E8=A7=A3=E7=BB=91?= =?UTF-8?q?=E6=97=B6=E6=BF=80=E6=B4=BB=E8=AF=95=E7=94=A8=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/public/user/unbindDeviceLogic.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/logic/public/user/unbindDeviceLogic.go b/internal/logic/public/user/unbindDeviceLogic.go index b23b5e1..1530482 100644 --- a/internal/logic/public/user/unbindDeviceLogic.go +++ b/internal/logic/public/user/unbindDeviceLogic.go @@ -77,13 +77,6 @@ func (l *UnbindDeviceLogic) UnbindDevice(req *types.UnbindDeviceRequest) error { return errors.Wrapf(xerr.NewErrCode(xerr.DatabaseUpdateError), "update refer code failed: %v", err) } - // 3.1 激活试用订阅(如果开启) - if l.svcCtx.Config.Register.EnableTrial { - if err := l.activeTrial(newUser.Id, tx); err != nil { - return err - } - } - // 3.2 记录注册日志 registerLog := log.Register{ AuthMethod: "device",