你这个问题解决了吗?我现在也遇到这样的问题 48% { top: var(--height_mi--); opacity: 1; } 我这个是需要在外部计算完之后在传人css样式中,主要写固定的高度就OK,如果是计算的话iOS 的就不执行。
@keyframes 动画在ios上没效果,安卓和工具ok用css3动画做了一个倒计时,本来以为找到了比较简单的方法完成了,但是发现在ios上没有效果,在工具和安卓机都是可以的,求解! [图片]
2020-09-21不好意思,微信登录弹bundleid不一致的问题我解决了之后没有在论坛里回答。我那个不是微信账号问题,是程序问题。呼起微信登录的按钮事件是通过block回调的,WechatAuth.share.auth(from: this!, delegate: this!) 在调用了auth之后this销毁了,不清楚为什么在微信上就显示了bundleid不一致。
ios使用微信登录sdk在iOS12的系统上会提示bundleID校验不通过是怎么回事?因为苹果弃用UIWebView,在提交appstore的时候总是会发邮件提醒,所以在排除第三方SDK的时候发现在更新微信SDK后iOS12和iOS13出现差异: 更新完微信SDK之后按照文档要求配置了universal link,并在网站配置后验证通过了,通过手机浏览器可以直接呼起APP,微信开放平台和项目里的bundleid也都配置完成,但是在iOS12呼起APP之后微信会弹框提示“由于应用bundleID信息校验不通过,无法使用微信登录”,之后回到APP,奇怪的是可以获取微信的用户信息,在APP内登录是正常的,只是微信的弹框是每次都会弹,更奇怪的是iOS13的手机就不会弹。(微信版本都是7.0.8) 一下是我在xcode中获取的打印信息: wxlog:send req[<SendAuthReq: 0x28138a880>], appID:wx6cb7ef43858742ee, universalLink:https://libraryplus.bjadks.com/, sdkVersion:1.8.6.1 wxlog:set property list change into print log by other block wxlog:launch app with ul only success wxlog:launch app with universal link, ret:1 wxlog:req:<SendAuthReq: 0x281396fd0>, cid:d21fe16b75c8627297ee3fdc904868c889d41771 2019-11-13 13:23:46.816740+0800 Base[8944:919228] PBItemCollectionServicer connection disconnected. 2019-11-13 13:23:47.259734+0800 Base[8944:919228] PBItemCollectionServicer connection disconnected. 2019-11-13 13:23:48.087564+0800 Base[8944:919034] Could not load IOSurface for time string. Rendering locally instead. wxlog:launch app with ul only success wxlog:launch app with universal link, ret:1 wxlog:req:<SendAuthReq: 0x28138a880>, cid:0ff7b5e391edcfbf3c3283dc5ec9005d669f45f8 wxlog:Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)] is nil! 这个问题折磨我半天了,根本没思路了,不知怎么整。。。求救!
2020-04-15这个问题我也遇到了,你的问题解决了吗?我的是每次拉起微信之后微信弹窗提示bundleid验证不通过,但是可以获取到信息。
ios使用微信登录sdk可以拉起微信但是闪一下就退了,无法正确获取授权页面该怎么办?环境描述:系统IOS 12.4 ,微信版本 7.0.8, SDK 1.8.6, 错误日志: Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)] is nil 状态描述:可以看到有跳转微信的过程,但是不能正确获取微信授权界面。但是又能拿到相应的返回值,很奇怪,有人遇到过嘛? 相关代码: //三个重写的API func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { returnWXApi.handleOpen(url, delegate: self) // func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool { // return WXApi.handleOpen(url, delegate: self) // } func application(_application: UIApplication, handleOpen url: URL) -> Bool{ returnWXApi.handleOpen(url, delegate: self) func application(_ application: UIApplication, continueuserActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { logger.info("调用useractivity" returnWXApi.handleOpenUniversalLink(userActivity, delegate: self) //回调 func onResp(_ resp: BaseResp) { logger.info(String(format: "返回的resp是:%p", resp)) //微信登录 ifresp is SendAuthResp { logger.info("微信登录接口" // switch(resp.errCode){ // case 0: // let response = resp as! SendAuthResp // NotificationCenter.default.post(name: NSNotification.Name(rawValue: "WXLoginSuccessNotification"), object: response.code) // break // case -4: //用户拒绝 // NotificationCenter.default.post(name: NSNotification.Name(rawValue: "WXLoginDenyNotification"), object: nil) // break // case -2: //用户取消 // NotificationCenter.default.post(name: NSNotification.Name(rawValue: "WXLoginCancelNotification"), object: nil) // break // default: // break // } ifresp.errCode == 0 && resp.type == 0 {//授权成功 let response = resp as! SendAuthResp NotificationCenter.default.post(name: NSNotification.Name(rawValue: "WXLoginSuccessNotification"), object: response.code) // end of internal if return // end of external if // end of onResp // send @IBAction func wechatLogin(_ sender: LGButton) { sender.isLoading = true ifWXApi.isWXAppInstalled() { let app = UIApplication.shared ifapp.canOpenURL(URL.init(string: WEIXIN_SCHEME)!) { let req = SendAuthReq.init() req.scope = "snsapi_message,snsapi_userinfo,snsapi_friend,snsapi_contact" req.state = "\(arc4random()%100)" logger.info("准备开启微信登录!" let deadlineTime = DispatchTime.now() + .seconds(1) DispatchQueue.main.asyncAfter(deadline: deadlineTime) { //停止转圈圈 WXApi.send(req, completion: { (success) in sender.isLoading = false logger.info("成功获取微信app的授权,开始向微信服务器发起请求!" })} } else if#available(iOS 10.0, *) { UIApplication.shared.open(URL.init(string: "http://weixin.qq.com/r/qUQVDfDEVK0rrbRu9xG7")!, options: [:], completionHandler: nil) } else // Fallback on earlier versions UIApplication.shared.openURL(URL.init(string: "http://weixin.qq.com/r/qUQVDfDEVK0rrbRu9xG7")!) else self.sendmsgToWxServer() sender.isLoading = false // 登录成功之后 @objc func WXLoginSuccess(notification:Notification) { logger.info("WXLoginSuccess开始执行" let code = notification.object as! String let requestUrl = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=\(WX_APPID)&secret=\(WX_APPSecret)&code=\(code)&grant_type=authorization_code" DispatchQueue.global().async { let requestURL: URL = URL.init(string: requestUrl)! let data = try? Data.init(contentsOf: requestURL, options: Data.ReadingOptions()) //TODO: 从微信获取到的用户信息,然后再回传到app的后台服务器 DispatchQueue.main.async { let jsonResult = try! JSONSerialization.jsonObject(with: data!, options: JSONSerialization.ReadingOptions.mutableContainers) as! Dictionary<String,Any> logger.info("微信app传回来的数据: \(jsonResult)" let openid: String = jsonResult["openid"] as! String let access_token: String = jsonResult["access_token"] as! String let unionid: String = jsonResult["unionid"] as! String self.openid = openid //向app服务器保存用户的openid和access_token let parameters: Parameters = ["openId": openid, "accessToken": access_token] AF.request(SAVE_USER_INFO_URL_STR, parameters: parameters).validate() let homeVcUrlStr = String(format: "%@%@", arguments: [HOMEPAGE_LOGINED_URL_STR, unionid]) logger.info(String(format:"homeStr: %@, openid: %@", arguments:[homeVcUrlStr, openid])) let mainNavigationController = self.presentingViewController as! LFMainNavigationController let homePageController = mainNavigationController.viewControllers[0] as! LFHomeViewController homePageController.openid = self.openid homePageController.homePageUrlStr = homeVcUrlStr self.dismiss(animated: true, completion: { }) // end of dismiss //暂时不需要从微信服务器获取用户的信息 // self.getUserInfo(openid: openid, access_token: access_token) 有人能帮忙看看嘛? 或者有人遇到相似的问题嘛 ? 求交流 !!! 网页回复不及时可加微信:dzjMichael ( 加时注明来源 不甚感激!!! ———————————————————————————— 2020 - 01 -07更新 问题已经解决,发现是UL配置的问题,建议各位老铁多多检查自己的配置吧,从scheme到ul,然后再试自己的代理函数,基本上照着文档来一般不会有问题。
2019-11-13