Sfoglia il codice sorgente

1.修改iOS UWA字典创建时空对象引起崩溃。

Pen Li 7 anni fa
parent
commit
86d0d21dee
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      common/upload/RANetworkTaskDelegate.m

+ 5 - 1
common/upload/RANetworkTaskDelegate.m

@@ -155,9 +155,13 @@
         } else {
             if (self.r) {
                 
+                NSString *filePath = self.fileCachePath;
+                if (!filePath) {
+                    filePath = @"";
+                }
                 NSMutableDictionary *resutlDic = [@{
                                                     @"result" : @2,
-                                                    @"path"   : self.fileCachePath,
+                                                    @"path"   : filePath,
                                                     @"msg"    : @"download complete"
                                                     } mutableCopy];
                 self.r(resutlDic);