收藏
回答

微信后台修改universallinks后,对于已授权过的用户配置不生效,怎么办?

2022-05-17 17:55:33.341593+0800 ShareSDKDemo[341:10552] wechat appkey:[自家微信应用id] appSecret:[自家微信应用秘钥], universalLink:https://[公司域名]/capetown/

2022-05-17 17:55:33.341973+0800 ShareSDKDemo[341:10552] https://api.weibo.com/oauth2/default.html

2022-05-17 17:55:39.771161+0800 ShareSDKDemo[341:10707] [general] Connection to daemon was invalidated

2022-05-17 17:55:42.648489+0800 ShareSDKDemo[341:10552] WeChatSDK: wxlog:send req[], appID:应用id, universalLink:https://[公司域名]/capedown/, sdkVersion:1.8.7.1

2022-05-17 17:55:42.652370+0800 ShareSDKDemo[341:10552] WeChatSDK: wxlog:set property list

2022-05-17 17:55:42.680519+0800 ShareSDKDemo[341:10552] WeChatSDK: wxlog:launch app with ul only success

2022-05-17 17:55:42.680582+0800 ShareSDKDemo[341:10552] WeChatSDK: wxlog:launch app with universal link, ret:1

2022-05-17 17:55:42.680615+0800 ShareSDKDemo[341:10552] WeChatSDK: wxlog:req:, cid:79d6e414eb82206cbe4647f8c44ac15071060f6f

2022-05-17 17:55:42.770246+0800 ShareSDKDemo[341:10709] PBItemCollectionServicer connection disconnected.

2022-05-17 17:55:43.479041+0800 ShareSDKDemo[341:10552] [Snapshotting] Snapshotting a view (0x10a81e200, UIKeyboardImpl) that is not in a visible window requires afterScreenUpdates:YES.


特别奇怪,我已经删除了应用重装,后台配置的也是https://[公司域名]/capetown/,且设置的universalLinks明明是

https://[公司域名]/capetown/,但是微信SDK打印出来的univeralLinks确是“https://[公司域名]/capedown/”,和我传入的明显不一样。capedown这是我原来的后台配置。而且搜了全工程都没有这个capedown。是不是微信SDK自己会有缓存universalLinks,即使我们改了注册时的universalLink,但是SDK分享时仍会用这个错误的去做匹配,进而导致出现“由于应用universallink校验不通过。”

场景2:用新的设备安装(完全没装过这个bundleid的测试应用,首次安装),微信日志打印出来的也是旧universallink是,这个到底是个什么机制?新旧用户都没法用啊

这对于线上配错universallink的应用,该怎么解决?


最后一次编辑于  2022-05-18
回答关注问题邀请回答
收藏

1 个回答

  • 宋航
    宋航
    2022-05-24

    我也遇到类似问题,我是更换了 universallink 文件内容,然后再上线,遇到如上同样的返回提示,不知道怎么解决,微信官方不排查一下吗?

    2022-05-24
    有用
    回复
登录 后发表内容