修复onlyRetrieveFromCache仅磁盘和内存获取资源失效

Signed-off-by: zenggaofeng <zenggaofeng2@h-partners.com>
This commit is contained in:
zenggaofeng 2024-03-27 15:03:24 +08:00
parent 00f77d9cc5
commit d7d66d1faa
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
- 修复单帧gif图片加载失败 - 修复单帧gif图片加载失败
- removeRunning删除running队列log设置开关 - removeRunning删除running队列log设置开关
- ImageKnife新增图片宽高自适应功能 - ImageKnife新增图片宽高自适应功能
- 修复onlyRetrieveFromCache属性(仅磁盘和内存获取资源)失效
## 2.1.2-rc.10 ## 2.1.2-rc.10
- 修复部分gif图片识别成静态图 - 修复部分gif图片识别成静态图

View File

@ -205,6 +205,7 @@ export class RequestManager {
this.parseDiskFile2PixelMap(request, cached, onComplete, onError) this.parseDiskFile2PixelMap(request, cached, onComplete, onError)
} else { } else {
this.mStage = Stage.SOURCE; this.mStage = Stage.SOURCE;
this.mStage = request.onlyRetrieveFromCache? Stage.FINISHED : Stage.SOURCE
this.searchLoadFrom(this.options, this.mStage, onComplete, onError); this.searchLoadFrom(this.options, this.mStage, onComplete, onError);
} }
} }