游戏商城购买商品进入爱贝收银台后,点微信到微信支付界面,取消支付回到游戏会卡在商城界面。按Home回到手机界面再进游戏就会恢复正常。
而刚进爱贝页面就直接返回游戏是正常的,就是在跳转到微信返回游戏商城后就会卡住了。
卡在这里好久了,跪求大神指导
这种问题不应该是去爱贝的论坛上问么
2赞
cocos专业背黑锅
微信分享存在这个问题,修改这段代码试试,不知道你的是哪个版本
- (void)applicationWillEnterForeground:(UIApplication *)application {
/*
Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
*/
/*
auto glview = (__bridge CCEAGLView*)(Director::getInstance()->getOpenGLView()->getEAGLView());
auto currentView = [[[[UIApplication sharedApplication] keyWindow] subviews] lastObject];
if (glview == currentView) {
cocos2d::Application::getInstance()->applicationWillEnterForeground();
}
[CAAgent onResume];//
*/
cocos2d::Application::getInstance()->applicationWillEnterForeground();//
}
楼主解决了吗?我也遇到这问题
