feat(license): 退出授权 / 释放本实例(确认后 deactivate)
设置→授权 Pro 态管理员可退出:在线 LIC- 先调 opsx deactivate(含 activation_token),成功才清本地;失败保留现状。LICOFF- 仅解本机并提示后台名额可能仍占。禁静默清码。
This commit is contained in:
1 parent
f3d27ceb04
commit
cec7c6eeaf
10 files changed
+338
-3
No files matched your search
@@ -68,3 +68,13 @@ func (ctrl *SystemController) ActivateLicense(c *gin.Context) {
|
||||
}
|
||||
utils.Success(c, lic.Sanitized())
|
||||
}
|
||||
|
||||
// DeactivateLicense 退出授权 / 释放本实例(admin);成功才清本地,失败保留现状。
|
||||
func (ctrl *SystemController) DeactivateLicense(c *gin.Context) {
|
||||
res, err := services.DeactivateLicense()
|
||||
if err != nil {
|
||||
utils.Error(c, 400, err.Error())
|
||||
return
|
||||
}
|
||||
utils.Success(c, res)
|
||||
}
|
||||
Reference in new issue
Block a user