瀏覽代碼

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

Pen Li 7 年之前
父節點
當前提交
86d0d21dee
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      common/upload/RANetworkTaskDelegate.m

+ 5 - 1
common/upload/RANetworkTaskDelegate.m

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