修复支付宝支付
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user