#4385 提交代码-改回原来的变量

Merged
zouap merged 2 commits from fix-4083 into V20230628 10 months ago
  1. +4
    -4
      services/cloudbrain/util.go

+ 4
- 4
services/cloudbrain/util.go View File

@@ -12,8 +12,8 @@ import (
)

func GetAiCenterShowByAiCenterId(aiCenterId string, ctx *context.Context) string {
if setting.AiCenterCodeAndNameAndLocMapInfo != nil {
if info, ok := setting.AiCenterCodeAndNameAndLocMapInfo[aiCenterId]; ok {
if setting.AiCenterCodeAndNameMapInfo != nil {
if info, ok := setting.AiCenterCodeAndNameMapInfo[aiCenterId]; ok {
if ctx.Language() == "zh-CN" {
return info.Content
} else {
@@ -28,8 +28,8 @@ func GetAiCenterShow(aiCenter string, ctx *context.Context) string {
aiCenterInfo := strings.Split(aiCenter, "+")

if len(aiCenterInfo) == 2 {
if setting.AiCenterCodeAndNameAndLocMapInfo != nil {
if info, ok := setting.AiCenterCodeAndNameAndLocMapInfo[aiCenterInfo[0]]; ok {
if setting.AiCenterCodeAndNameMapInfo != nil {
if info, ok := setting.AiCenterCodeAndNameMapInfo[aiCenterInfo[0]]; ok {
if ctx.Language() == "zh-CN" {
return info.Content
} else {


Loading…
Cancel
Save