fix:礼物返回为null的问题
This commit is contained in:
parent
b8ff6d56ae
commit
9503f4a6c7
@ -90,6 +90,13 @@ public class GiftCacheUtil {
|
||||
return new File(CommonAppConfig.GIF_PATH, getDownloadSaveName(id) + ".svga").exists();
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id获取礼物文件
|
||||
*/
|
||||
public static File getGiftForId(int id){
|
||||
return new File(CommonAppConfig.GIF_PATH, getDownloadSaveName(id) + ".svga");
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据文件名返回id
|
||||
*/
|
||||
@ -127,7 +134,7 @@ public class GiftCacheUtil {
|
||||
*/
|
||||
public void downloadGiftForId(LiveGiftBean bean, CommonCallback<File> mDownloadGifCallback) {
|
||||
if (checkGiftIsDownload(bean.getId())) {
|
||||
mDownloadGifCallback.callback(null);
|
||||
mDownloadGifCallback.callback(getGiftForId(bean.getId()));
|
||||
return;
|
||||
}
|
||||
clickId.add(bean.getId()+"");
|
||||
|
Loading…
Reference in New Issue
Block a user