feat(database): 添加多个玩家相关表的联合唯一约束 - 为player_talk表添加玩家+挖矿联合唯一索引 - 为player_task表添加玩家+任务联合唯一索引 - 为player_title表添加玩家+称号联合唯一索引 - 为player_pet表添加玩家+精灵联合唯一索引 - 为player_cdk_log表添加玩家+CDK联合唯一索引 - 为player_egg表添加玩家孵蛋联合唯一索引 - 为player_pvp表添加PVP索引 - 为player_sign_in_log表添加签到联合唯一索引 - 为player_room_house表添加房间索引 fix(user-talk): 修复获取聊天配置时的空指针异常 - 在GetTalkCategory方法中添加配置为空的检查 - 当配置为nil时返回系统错误码避免崩溃 refactor(mineral-config): 优化挖矿配置字段注释 - 修改DailyCollectCount字段的数据库注释从"每日可采集次数"改为"可采集次数" refactor(talk-service): 优化聊天更新逻辑的原子操作 - 重构Update方法中的数据库原子操作逻辑 - 使用InsertIgnore保证记录只插入一次 - 添加player_id条件确保更新操作的准确性 - 改进错误处理和返回值逻辑 ```
This commit is contained in:
37
.vscode/settings.json
vendored
37
.vscode/settings.json
vendored
@@ -1,37 +0,0 @@
|
||||
{
|
||||
"goBuild.savedBuildConfig": {
|
||||
"outputName": "",
|
||||
"outputDir": "./public",
|
||||
"zcliEnabled": false,
|
||||
"targetOS": "linux",
|
||||
"targetArch": "current",
|
||||
"enableRace": false,
|
||||
"enableOptimization": true,
|
||||
"stripSymbols": true,
|
||||
"cgoEnabled": false,
|
||||
"buildTags": "",
|
||||
"customLdflags": "-X main.Version={{.Version}} -X main.BuildTime={{.BuildTime}} -X main.GitCommitID={{.GitCommit}} -X main.GitBranch={{.GitBranch}} -buildid= -extldflags '-static'",
|
||||
"verboseMode": false,
|
||||
"printCommands": false,
|
||||
"keepWorkDir": false,
|
||||
"forceRebuild": false,
|
||||
"dryRun": false,
|
||||
"trimPath": true,
|
||||
"currentPreset": "production"
|
||||
},
|
||||
"go.toolsEnvVars": {
|
||||
"GOROOT": "/usr/local/go",
|
||||
"GOPATH": "/root/go",
|
||||
"PATH": "/usr/local/go/bin:/root/go/bin:${env:PATH}",
|
||||
"GOCACHE": "/workspace/.cache/go-build",
|
||||
"GOMODCACHE": "/workspace/.cache/gomod",
|
||||
"XDG_CACHE_HOME": "/workspace/.cache"
|
||||
},
|
||||
"go.alternateTools": {
|
||||
"go": "/usr/local/go/bin/go",
|
||||
"gopls": "/root/go/bin/gopls"
|
||||
},
|
||||
"go.useLanguageServer": true,
|
||||
"goBuild.zcli.enabled": false,
|
||||
"cSpell.words": ["struc"]
|
||||
}
|
||||
Reference in New Issue
Block a user