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
@@ -169,6 +169,7 @@ func SetupRouter() *gin.Engine {
|
||||
system.GET("/self-check", systemCtrl.Health)
|
||||
system.GET("/license", systemCtrl.LicenseStatus)
|
||||
system.POST("/license/activate", middleware.AdminAuth(), systemCtrl.ActivateLicense)
|
||||
system.POST("/license/deactivate", middleware.AdminAuth(), systemCtrl.DeactivateLicense)
|
||||
}
|
||||
|
||||
// 审计日志:仅管理员可查(含他人操作记录)
|
||||
|
||||
Reference in new issue
Block a user