yxh265

Results 4 issues of yxh265

让本地服务器开放出去,支持同文件夹的文件也能被访问。方便一个工程里面的本地服务器还有其他作用的时候用。

测试发现缓存的10%完全没有用,会被放到一个另外名字的文件夹和直接播放的文件不一样。其实就代码写错了一个地方 ``` 原来的代码 NSURL *proxyUrl = [KTVHTTPCache proxyURLWithOriginalURL: [NSURL URLWithString:urlStr]]; KTVHCDataCacheItem *item = [KTVHTTPCache cacheCacheItemWithURL:proxyUrl]; double cachePrecent = 1.0 * item.cacheLength / item.totalLength; // 判断缓存已经超过10%了 if (cachePrecent >= self.preloadPrecent) return...

让 [String: Any], [Any]支持Codable,模型定义如下 struct testModel: ExAutoCodable { @ExCodable var jumpParam: [String: Any]? = [:] @ExCodable var matchs: [Any] = [] }

https://github.com/levantAJ/AnyCodable https://stackoverflow.com/questions/44603248/how-to-decode-a-property-with-type-of-json-dictionary-in-swift-45-decodable-pr