Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[WEEX-535][iOS] add extMsg when reproteror for windmill
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-chen authored and cxfeng1 committed Jul 26, 2018
1 parent 72422cb commit a1cd117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ extern NSString *const bundleUrlOptionKey;
**/
@property (nonatomic, assign) BOOL needPrerender;

@property (nonatomic , strong) NSDictionary* containerInfo;

/**
* The state of current instance.
**/
Expand Down
5 changes: 5 additions & 0 deletions ios/sdk/WeexSDK/Sources/Monitor/WXExceptionUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a1cd117

Please sign in to comment.