修复支付宝支付

This commit is contained in:
2026-09-16 16:27:56 +08:00
parent 605c2a569f
commit 685dbc030d
9 changed files with 265 additions and 133 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ func (c *BackendModulesController) GetTenantList() {
return
}
// 查询当前租户套餐包含的模块 code 集合(含默认套餐回退)
// 查询当前租户已开通的模块 code 集合(套餐模块 + 已开通产品订单关联模块,编码已规范化)
tid := uint64(claims.TenantId)
allowedCodes := services.GetTenantModuleCodes(tid)
@@ -84,7 +84,7 @@ func (c *BackendModulesController) GetTenantList() {
for _, m := range rows {
enabled := true
if len(allowedCodes) > 0 {
enabled = allowedCodes[m.Code]
enabled = allowedCodes[services.NormalizeModuleCode(m.Code)]
}
enhanced = append(enhanced, moduleWithEnabled{SystemModules: m, Enabled: enabled})
}