修改问题

This commit is contained in:
zpc 2024-11-19 18:04:10 +08:00
parent bc86767caa
commit 59d020c430

View File

@ -215,7 +215,7 @@ namespace CloudGaming.Code.Game
var degameIds = await UserInfo.GetUserGameCollect(Dao, RedisCache);
degameIds.Remove(gameId);
await this.SaveUserInfoCacheChangesAsync();
return new BaseResponse<bool>(ResonseCode.Success, "取消收藏成功");
return new BaseResponse<bool>(ResonseCode.Success, "取消收藏成功", false);
}
var game = Cache.GameEntityCache[gameId];
if (game == null)
@ -235,7 +235,7 @@ namespace CloudGaming.Code.Game
var gameIds = await UserInfo.GetUserGameCollect(Dao, RedisCache);
gameIds.Add(gameId);
await this.SaveUserInfoCacheChangesAsync();
return new BaseResponse<bool>(ResonseCode.Success, "收藏成功");
return new BaseResponse<bool>(ResonseCode.Success, "收藏成功", true);
}
/// <summary>