This commit is contained in:
桀尼龟 2025-02-24 20:46:00 +08:00
parent bafe46c523
commit 5ecdc9b8f7
5 changed files with 59 additions and 57 deletions

View File

@ -20,6 +20,7 @@ package main
import ( import (
"fmt" "fmt"
"fonchain-fiee/cmd/config" "fonchain-fiee/cmd/config"
"fonchain-fiee/pkg/cache"
"fonchain-fiee/pkg/router" "fonchain-fiee/pkg/router"
) )
@ -44,14 +45,14 @@ func bootstrap() (err error) {
fmt.Println(config.AppConfig) fmt.Println(config.AppConfig)
////redis ////redis
//redisConfig := cache.RedisConfig{ redisConfig := cache.RedisConfig{
// RedisDB: configEnv.Redis.RedisDB, RedisDB: configEnv.Redis.RedisDB,
// RedisAddr: configEnv.Redis.RedisAddr, RedisAddr: configEnv.Redis.RedisAddr,
// RedisPw: configEnv.Redis.RedisPW, RedisPw: configEnv.Redis.RedisPW,
// RedisDbName: configEnv.Redis.RedisDBNAme, RedisDbName: configEnv.Redis.RedisDBNAme,
//} }
//
//cache.LoadRedis(redisConfig) cache.LoadRedis(redisConfig)
// //
//gpt.InitSet(configEnv.Ai.Host, configEnv.Ai.TelNum, configEnv.Ai.Password) //gpt.InitSet(configEnv.Ai.Host, configEnv.Ai.TelNum, configEnv.Ai.Password)
return nil return nil

View File

@ -21,10 +21,11 @@ BucketName = "fontree-test"
BaseDir = "fonchain-main" BaseDir = "fonchain-main"
CdnHost = "https://cdn-test.szjixun.cn" CdnHost = "https://cdn-test.szjixun.cn"
[redis] [redis]
RedisDB = "1" RedisDB = "2"
RedisAddr = "127.0.0.1:6379" RedisAddr = "127.0.0.1:6379"
RedisPW = "" RedisPW = ""
RedisDBNAme = "1" RedisDBNAme = "2"
[ai] [ai]
Host = "https://erpapi.fontree.cn" Host = "https://erpapi.fontree.cn"

View File

@ -22,10 +22,10 @@ BaseDir = "fiee"
CdnHost = "https://cdn-test.szjixun.cn" CdnHost = "https://cdn-test.szjixun.cn"
[redis] [redis]
RedisDB = "1" RedisDB = "2"
RedisAddr = "172.16.100.114:6379" RedisAddr = "172.16.100.114:6379"
RedisPW = "kP6tW4tS3qB2dW4aE6uI5cX2" RedisPW = "kP6tW4tS3qB2dW4aE6uI5cX2"
RedisDBNAme = "1" RedisDBNAme = "2"
[ai] [ai]
Host = "https://erpapi.fontree.cn" Host = "https://erpapi.fontree.cn"

View File

@ -14,10 +14,10 @@ BosBaseDir = "fonchain-main"
BosHttp = "https://" BosHttp = "https://"
[redis] [redis]
RedisDB = "1" RedisDB = "2"
RedisAddr = "svc-fontree-redis-service:6379" RedisAddr = "svc-fontree-redis-service:6379"
RedisPW = "fonchain_opv:kP6tW4tS3qB2dW4aE6uI5cX2" RedisPW = "fonchain_opv:kP6tW4tS3qB2dW4aE6uI5cX2"
RedisDBNAme = "1" RedisDBNAme = "2"
[ai] [ai]
Host = "https://erpapi.fontree.cn" Host = "https://erpapi.fontree.cn"

View File

@ -9,51 +9,51 @@ const (
) )
var EnMessages = map[string]string{ var EnMessages = map[string]string{
"获取套餐列表失败": "Failed to get bundle list", "获取套餐列表失败": "Failed to get bundle list",
"创建套餐信息失败": "Failed to create bundle information", "创建套餐信息失败": "Failed to create bundle information",
"创建套餐信息成功": "Successfully created bundle information", "创建套餐信息成功": "Successfully created bundle information",
"更新套餐信息失败": "Failed to update bundle information", "更新套餐信息失败": "Failed to update bundle information",
"更新套餐信息成功": "Successfully updated bundle information", "更新套餐信息成功": "Successfully updated bundle information",
"删除套餐信息失败": "Failed to delete bundle information", "删除套餐信息失败": "Failed to delete bundle information",
"删除套餐信息成功": "Successfully deleted bundle information", "删除套餐信息成功": "Successfully deleted bundle information",
"获取套餐信息失败": "Failed to get bundle information", "获取套餐信息失败": "Failed to get bundle information",
"创建订单信息失败": "Failed to create order information", "创建订单信息失败": "Failed to create order information",
"创建订单信息成功": "Successfully created order information", "创建订单信息成功": "Successfully created order information",
"更新订单信息失败": "Failed to update order information", "更新订单信息失败": "Failed to update order information",
"更新订单信息成功": "Successfully updated order information", "更新订单信息成功": "Successfully updated order information",
"获取订单信息失败": "Failed to get order information", "获取订单信息失败": "Failed to get order information",
"获取订单列表失败": "Failed to get order list", "获取订单列表失败": "Failed to get order list",
"缺少套餐UUID": "Missing bundle UUID", "缺少套餐UUID": "Missing bundle UUID",
"缺少客户签名信息": "Missing customer signature", "缺少客户签名信息": "Missing customer signature",
"插入签名失败": "Failed to insert signature", "插入签名失败": "Failed to insert signature",
"缺少订单号": "Missing order number", "缺少订单号": "Missing order number",
"缺少订单信息": "Missing order information", "缺少订单信息": "Missing order information",
"非当前用户订单信息不可操作": "Cannot operate on order information of other users", "非当前用户订单信息不可操作": "Cannot operate on order information of other users",
"订单已支付": "Order has been paid", "订单已支付": "Order has been paid",
"您已购买过套餐,无法再次购买": "You have already purchased this bundle and cannot purchase again", "您已购买过套餐,无法再次购买": "You have already purchased this bundle and cannot purchase again",
"查询支付信息失败": "Failed to query payment information", "查询支付信息失败": "Failed to query payment information",
"下载文件失败": "Failed to download file", "下载文件失败": "Failed to download file",
"上传文件失败": "Failed to upload file", "上传文件失败": "Failed to upload file",
"时间格式错误": "Invalid time format", "时间格式错误": "Invalid time format",
"账号或密码错误": "The account or password is incorrect", "账号或密码错误": "The account or password is incorrect",
"账号或验证码错误": "The account or verification code is incorrect", "账号或验证码错误": "The account or verification code is incorrect",
"账号已存在": "Account already exists", "账号已存在": "Account already exists",
"没有找到数据": "No data found", "没有找到数据": "No data found",
"已经发送过,验证码尚可用": "It was sent. The verification code is still working", "已经发送过,验证码尚可用": "It was sent. The verification code is still working",
"系统提示:已经发送过,验证码尚可用": "System message: Already sent, verification code is still available", "系统提示:已经发送过,验证码尚可用": "System message: Already sent, verification code is still available",
"您的手机号当天发送次数过多,请联系管理员通过密码登录": "Your mobile phone number is sent too many times that day, please contact the administrator to log in through the password", "您的手机号当天发送次数过多,请联系管理员通过密码登录": "Your mobile phone number is sent too many times that day, please contact the administrator to log in through the password",
"您的手机号验证码错误,请确认之后注册": "Your phone number verification code is incorrect, please confirm and register", "您的手机号验证码错误,请确认之后注册": "Your phone number verification code is incorrect, please confirm and register",
"手机号不合法": "The phone number is illegal", "手机号不合法": "The phone number is illegal",
"手机号未更改": "The phone number has not been changed", "手机号未更改": "The phone number has not been changed",
"新手机号过期": "New phone number expired", "新手机号过期": "New phone number expired",
"验证码错误": "Verification code error", "验证码错误": "Verification code error",
"验证码未发送": "The verification code was not sent", "验证码未发送": "The verification code was not sent",
"账号不存在": "Account does not exist", "账号不存在": "Account does not exist",
"已实名": "In real name", "已实名": "In real name",
"实名审核中,请勿重复提交": "During real-name audit, please do not submit repeatedly", "实名审核中,请勿重复提交": "During real-name audit, please do not submit repeatedly",
"用户状态异常,无法进行审核": "The user is abnormal and cannot be audited. Procedure", "用户状态异常,无法进行审核": "The user is abnormal and cannot be audited. Procedure",
"验证码已失效": "The verification code is invalid", "验证码已失效": "The verification code is invalid",
"服务器错误": "Server error", "服务器错误": "Server error",
"验证失败,请控制拼图对齐缺口": "Verification failed, please control puzzle alignment gap", "验证失败,请控制拼图对齐缺口": "Verification failed, please control puzzle alignment gap",
} }