@@ -150,31 +150,8 @@ - (void)prefetchLua {
150150 if (!self.networkManager ) {
151151 [self initNetworkManager ];
152152 }
153-
154- NSURL *bundleURL = [[NSBundle mainBundle ] URLForResource: @" VideoPlsOSResources" withExtension: @" bundle" ];
155- if (bundleURL) {
156- self.luaPath = bundleURL.relativePath ;
157- self.useUpdateVersion = NO ;
158- self.downloadFinished = YES ;
159- }
160-
161- if (self.useUpdateVersion ) {
162- // http://videojj-mobile.oss-cn-beijing.aliyuncs.com/huyu/developer/version.json
163- // https://videojj-mobile.oss-cn-beijing.aliyuncs.com/os/lua/version.json";
164- // http://videojj-mobile.oss-cn-beijing.aliyuncs.com/os/developer/version.json
165- // NSString *versionUrl = @"http://videojj-mobile.oss-cn-beijing.aliyuncs.com/os/developer/version.json";
166- // NSString *versionUrl = @"http://dev-videopublicapi.videojj.com/videoos/api/fileVersion";
167- NSString *versionUrl = VPLuaScriptServerUrl;
168- if ([[VPUPDebugSwitch sharedDebugSwitch ] debugState ] > 1 ) {
169- versionUrl = [NSString stringWithFormat: versionUrl, @" test" ];
170- } else {
171- versionUrl = [NSString stringWithFormat: versionUrl, @" " ];
172- }
173-
174- VPLuaScriptManager *manager = [[VPLuaScriptManager alloc ] initWithLuaStorePath: self .luaPath apiManager: self .networkManager.httpManager versionUrl: versionUrl nativeVersion: @" 1.0" ];
175- self.luaScriptManager = manager;
176- manager.delegate = self;
177- }
153+ self.useUpdateVersion = NO ;
154+ self.downloadFinished = YES ;
178155}
179156
180157- (void )initNetworkManager {
0 commit comments