You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2018/05/11 06:57:01 UTC

incubator-weex git commit: [WEEX-354] [iOS] WXAnalyzer check instance.scriptURL==nil close #1167

Repository: incubator-weex
Updated Branches:
  refs/heads/master 792ac344e -> 0d2681fcd


[WEEX-354] [iOS] WXAnalyzer check instance.scriptURL==nil
close #1167


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/0d2681fc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/0d2681fc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/0d2681fc

Branch: refs/heads/master
Commit: 0d2681fcd3abef46db2dad5c935a9bee609cc68b
Parents: 792ac34
Author: zhongcang <qh...@gmail.com>
Authored: Fri May 11 13:02:50 2018 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Fri May 11 14:55:57 2018 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Monitor/WXAnalyzerCenter.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/0d2681fc/ios/sdk/WeexSDK/Sources/Monitor/WXAnalyzerCenter.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Monitor/WXAnalyzerCenter.m b/ios/sdk/WeexSDK/Sources/Monitor/WXAnalyzerCenter.m
index 643b620..8ab9259 100644
--- a/ios/sdk/WeexSDK/Sources/Monitor/WXAnalyzerCenter.m
+++ b/ios/sdk/WeexSDK/Sources/Monitor/WXAnalyzerCenter.m
@@ -171,7 +171,7 @@
     
     NSMutableDictionary *wrapDic = [data mutableCopy];
     [wrapDic setObject:instance.instanceId forKey:@"instanceId"];
-    [wrapDic setObject:[instance.scriptURL absoluteString] forKey:@"url"];
+    [wrapDic setObject:[instance.scriptURL absoluteString]?:@"unSetscriptURL" forKey:@"url"];
     [wrapDic setValue:GROUP_ANALYZER forKey:@"group"];
     [wrapDic setValue:module forKey:@"module"];
     [wrapDic setValue:type forKey:@"type"];