fix: 系统配置数据值可能是多语言
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
-- Table structure for table `u_sub_user`
|
||||
--
|
||||
-- DROP TABLE IF EXISTS `u_sub_user`;
|
||||
CREATE TABLE `u_sub_user` (
|
||||
CREATE TABLE IF NOT EXISTS `u_sub_user` (
|
||||
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键',
|
||||
`imsi` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'SIM卡/USIM卡ID',
|
||||
`msisdn` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT '用户电话号码',
|
||||
|
||||
@@ -214,7 +214,7 @@ func (s *SysConfigController) ConfigKey(c *gin.Context) {
|
||||
}
|
||||
key := s.sysConfigService.SelectConfigValueByKey(configKey)
|
||||
if key != "" {
|
||||
c.JSON(200, result.OkData(key))
|
||||
c.JSON(200, result.OkData(i18n.TKey(language, key)))
|
||||
return
|
||||
}
|
||||
c.JSON(200, result.Err(nil))
|
||||
|
||||
Reference in New Issue
Block a user