修正摩天轮玩法点击只能退出问题:
1. 针对混淆做了方法调用修改 2. 退出按钮增加移除时机
This commit is contained in:
@@ -12770,7 +12770,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 20.20.22;
|
||||
MARKETING_VERSION = 20.20.23;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
@@ -12808,7 +12808,7 @@
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 20.20.22;
|
||||
MARKETING_VERSION = 20.20.23;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
@@ -72,14 +72,18 @@ NSString * const kMSGameLoaded = @"gameLoaded";
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
[self installUI];
|
||||
[self setupBackButton];
|
||||
}
|
||||
|
||||
- (void)setupBackButton {
|
||||
self.backBtn = [UIButton new];
|
||||
[self.view addSubview:self.backBtn];
|
||||
[self.backBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self.view);
|
||||
}];
|
||||
[self.backBtn addTarget:self action:@selector(backBtnAction) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
}
|
||||
|
||||
-(void)installUI{
|
||||
self.view.backgroundColor = [UIColor colorWithWhite:0 alpha:0.4];
|
||||
MSWeakWebViewScriptMessageDelegate *weakScriptMessageDelegate = [[MSWeakWebViewScriptMessageDelegate alloc] initWithDelegate:self];
|
||||
@@ -149,12 +153,14 @@ NSString * const kMSGameLoaded = @"gameLoaded";
|
||||
[self.webview evaluateJavaScript:jsMethods completionHandler:^(id
|
||||
_Nullable resp, NSError * _Nullable error) {
|
||||
NSLog(@"error = %@ , response = %@",error, resp);
|
||||
[self.backBtn removeFromSuperview];
|
||||
}];
|
||||
} else {
|
||||
NSString *jsMethods = [NSString stringWithFormat:@"%@({})", method];
|
||||
[self.webview evaluateJavaScript:jsMethods completionHandler:^(id
|
||||
_Nullable resp, NSError * _Nullable error) {
|
||||
NSLog(@"error = %@ , response = %@",error, resp);
|
||||
[self.backBtn removeFromSuperview];
|
||||
}];
|
||||
}
|
||||
|
||||
@@ -185,19 +191,22 @@ NSString * const kMSGameLoaded = @"gameLoaded";
|
||||
{
|
||||
NSString* method = [NSString stringWithFormat:@"%@:", message.name];
|
||||
NSDictionary *dicBody = [self dictionaryWithJsonString:message.body];
|
||||
SEL selector = NSSelectorFromString(method);
|
||||
if([self respondsToSelector:selector]){
|
||||
//使⽤反映射
|
||||
[self performSelector:selector withObject:dicBody];
|
||||
}else{
|
||||
|
||||
if ([message.name isEqualToString:kMSGetConfig]) {
|
||||
[self getConfig:dicBody];
|
||||
} else if ([message.name isEqualToString:kMSDestroy]) {
|
||||
[self destroy:dicBody];
|
||||
} else if ([message.name isEqualToString:kMSGameLoaded]) {
|
||||
[self gameLoaded:dicBody];
|
||||
} else if ([message.name isEqualToString:kMSGameRecharge]) {
|
||||
[self gameRecharge:dicBody];
|
||||
} else {
|
||||
NSLog(@"未实现⽅法 : %@ --> %@", message.name, message.body);
|
||||
}
|
||||
}
|
||||
// 获取信息配置
|
||||
- (void) getConfig:(NSDictionary*)args
|
||||
{
|
||||
|
||||
|
||||
NSLog(@"BSGAME %s","游戏调⽤getConfig");
|
||||
NSString* method = [args objectForKey:@"jsCallback"];
|
||||
RoomInfoModel *roomInfo = self.hostDelegate.getRoomInfo;
|
||||
@@ -283,16 +292,7 @@ NSString * const kMSGameLoaded = @"gameLoaded";
|
||||
// 游戏加载完毕 TODO 客⼾端
|
||||
[self.backBtn removeFromSuperview];
|
||||
}
|
||||
//加载完成
|
||||
- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation {
|
||||
//加载完成后隐藏progressView
|
||||
|
||||
}
|
||||
//加载失败
|
||||
- (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(WKNavigation *)navigation withError:(NSError *)error {
|
||||
//加载失败同样需要隐藏progressView
|
||||
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user