|
@@ -207,6 +207,20 @@ namespace GFGGame
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ public void RemoveGalleryData()
|
|
|
+ {
|
|
|
+ if (_dicGalleryData.Count > 30)
|
|
|
+ {
|
|
|
+ for (int i = 0; i < GalleryIDList.Count; i++)
|
|
|
+ {
|
|
|
+ long id = GalleryIDList[i];
|
|
|
+ if (_dicGalleryData.ContainsKey(id))
|
|
|
+ {
|
|
|
+ _dicGalleryData.Remove(id);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
public void UpdateRoleInfo(long workId, string name, int rank = 0)
|
|
|
{
|
|
|
if (_dicGalleryData.ContainsKey(workId))
|