[
https://issues.apache.org/jira/browse/WEEX-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16574684#comment-16574684
]
ASF GitHub Bot commented on WEEX-535:
-------------------------------------
lucky-chen closed pull request #1368: [WEEX-535][iOS] add extMsg when
reproteror for containerinfo
URL: https://github.com/apache/incubator-weex/pull/1368
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h
b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h
index cc91d75a58..f987d89376 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h
+++ b/ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h
@@ -75,6 +75,8 @@ extern NSString *const bundleUrlOptionKey;
**/
@property (nonatomic, assign) BOOL needPrerender;
+@property (nonatomic , strong) NSDictionary* containerInfo;
+
/**
* The state of current instance.
**/
diff --git a/ios/sdk/WeexSDK/Sources/Monitor/WXExceptionUtils.m
b/ios/sdk/WeexSDK/Sources/Monitor/WXExceptionUtils.m
index 246b077304..9599505ff4 100644
--- a/ios/sdk/WeexSDK/Sources/Monitor/WXExceptionUtils.m
+++ b/ios/sdk/WeexSDK/Sources/Monitor/WXExceptionUtils.m
@@ -40,6 +40,11 @@ + (void)commitCriticalExceptionRT:(NSString *)instanceId
errCode:(NSString *)err
WXSDKInstance * instance = [WXSDKManager instanceForID:instanceId];
if(instance){
bundleUrlCommit = instance.pageName?:([instance.scriptURL
absoluteString]?:bundleUrlCommit);
+ if (instance.containerInfo && instance.containerInfo.count >0) {
+ NSMutableDictionary* extInfo = [[NSMutableDictionary alloc]
initWithDictionary:extParams];
+ [extInfo addEntriesFromDictionary:instance.containerInfo];
+ extParams = extInfo;
+ }
}else if([instanceIdCommit hasPrefix:@"WX_KEY_EXCEPTION"]){
bundleUrlCommit = instanceId;
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> [iOS] add extMsg when reproteror for windmill
> ---------------------------------------------
>
> Key: WEEX-535
> URL: https://issues.apache.org/jira/browse/WEEX-535
> Project: Weex
> Issue Type: Improvement
> Reporter: peihan
> Assignee: Adam Feng
> Priority: Major
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)