/// <summary> /// 开始读取db /// </summary> private void LoadMails() { PlayerCache player = PlayerCacheManager.Instance.GetMember(m_char_idx); if (player == null) { return; } SQLMailHandle.LoadCharRecvs(m_char_idx, OnLoadRecvMailEnd); SQLMailHandle.LoadMailList(m_char_idx, player.ss_data.spid, OnLoadMailEnd); }
private void LoadMail() { Player player = UnitManager.Instance.GetUnitByIdx(m_char_idx) as Player; if (player == null) { return; } SQLMailHandle.LoadCharRecvs(m_char_idx, player.db_id, (info) => { m_had_recv_mails = info; SQLMailHandle.LoadMailList(m_char_idx, player.spid, player.db_id, OnLoadMailEnd); }); }