refactor(kv): 整理存档接线并清理迁移冗余实现
This commit is contained in:
@@ -21,14 +21,14 @@ public class SurveyService
|
||||
const string SurveyData = "SurveyData";
|
||||
const string SurveyReadSidData = "SurveyReadSidData";
|
||||
|
||||
readonly game.PlayerDataStorage.IPlayerSaveStore saveStore;
|
||||
private readonly Core.KV.IPlayerSaveStore saveStore;
|
||||
IUserService userService;
|
||||
cfg.Tables tables;
|
||||
List<string> receivedReward = new List<string>();
|
||||
List<string> readSid = new List<string>();
|
||||
string access_token;
|
||||
public SurveyData tableData;
|
||||
public SurveyService(IUserService userService, cfg.Tables tables, game.PlayerDataStorage.IPlayerSaveStore saveStore)
|
||||
public SurveyService(IUserService userService, cfg.Tables tables, Core.KV.IPlayerSaveStore saveStore)
|
||||
{
|
||||
this.userService = userService;
|
||||
this.saveStore = saveStore;
|
||||
@@ -55,7 +55,7 @@ public class SurveyService
|
||||
PlayerData playerData = GContext.container.Resolve<PlayerData>();
|
||||
|
||||
List<SurveyData> surveyDataTable = tables.TbSurveyData.DataList;
|
||||
ulong userId = Convert.ToUInt64(userService.UserId, saveStore is game.PlayerDataStorage.KVPlayerSaveStore ? 10 : 16);
|
||||
ulong userId = Convert.ToUInt64(userService.UserId, saveStore is game.KV.KvSaveStore ? 10 : 16);
|
||||
tableData = null;
|
||||
if (surveyDataTable.Count > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user