refactor(用户逻辑): 移除设备解绑时激活试用订阅的逻辑
Some checks failed
Build docker and publish / build (20.15.1) (push) Has been cancelled
Some checks failed
Build docker and publish / build (20.15.1) (push) Has been cancelled
This commit is contained in:
parent
77e4be3a71
commit
842edad966
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user