帖子
帖子
用户
博客
课程
123下一页
返回列表 发新帖
显示全部楼层
25
帖子
0
勋章
165
Y币

[BUG] wxPlus 最新版,调起微信登录失败!

[复制链接]
发表于 2020-11-11 22:49:54
本帖最后由 搜歌网 于 2020-11-11 22:58 编辑
  1.   var wxPlus = api.require('wxPlus');
  2. wxPlus.auth({
  3. apiKey: 'wx7d5435a508010d54'
  4. }, function(ret, err) {
  5. console.log(JSON.stringify(ret))
  6. });
复制代码



这里console,一直显示:{"status":false}

info.plist:
  1. <?xml version="1.0"encoding="UTF-8"?>
  2. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3. <plist version="1.0">
  4. <dict>

  5. <key>CFBundleDocumentTypes</key>

  6. <array>

  7. <dict>

  8. <key>CFBundleTypeName</key>

  9. <string>ShareImage</string>

  10. <key>CFBundleTypeRole</key>

  11. <string>Viewer</string>

  12. <key>LSHandlerRank</key>

  13. <string>Owner</string>

  14. <key>LSItemContentTypes</key>

  15. <array>

  16. <string>public.image</string>
  17. <string>public.item</string>
  18. <string>public.content</string>
  19. <string>public.text</string>

  20. </array>

  21. </dict>

  22. </array>

  23. <key>UISupportsDocumentBrowser</key>
  24. <true/>
  25. <key>LSSupportsOpeningDocumentsInPlace</key>
  26. <true/>
  27. </dict>
  28. </plist>
复制代码




key.xml:

  1. <?xml version="1.0"encoding="UTF-8" ?>
  2. <security>
  3. <item name="wxPayPlus_appId"value="wx7d5435a508010d54"/>
  4. <item name="wxPayPlus_mchId" value="13*****1"/>
  5. <item name="wxPayPlus_partnerKey"value="cf2******************0d"/>
  6. <item name="wxPayPlus_notifyUrl"value="http://ppppx.****.com"/>
  7. <item name="其它服务需加密的参数配置 "value="***"/>
  8. </security>
复制代码




UZApp.entitlements:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3. <plist version="1.0">
  4. <dict>
  5. <key>com.apple.developer.associated-domains</key>
  6. <array>
  7. <string>applinks:www.*****.com</string>
  8. </array>
  9. </dict>
  10. </plist>
复制代码





apple-app-site-association:

  1. // 示例说明
  2. {
  3. "applinks": {
  4. "apps": [], // 必须是空数组
  5. "details": [
  6. {
  7. "appID": "****.com.ios.***", // ****是(苹果开发者)Account - Membership的Team ID,后面是Bundle ID(包名)
  8. "paths": ["*","/m/*"] //对应域名中的path,用于过滤可以跳转到App的链接,必须加上通配符/*
  9. }
  10. ]
  11. }
  12. }
复制代码


电饭锅.png
file:///C:/Users/andychan/AppData/Local/Temp/msohtmlclip1/01/clip_image002.png


全部都已经配置好了。但是就是无法拉起微信登录,状态一直都是false!
请问是哪里问题啊?


25
帖子
0
勋章
165
Y币
本帖最后由 搜歌网 于 2020-11-12 08:20 编辑

自定义loader一直提示false,无法拉起~希望大佬看看,非常感谢
380
帖子
4
勋章
6
Y币
搜歌网 发表于 2020-11-11 22:50
自定义loader一直提示false,无法拉起~希望大佬看看,非常感谢

info.plist  这个文件删除


config.xml 配置querySchemes
配置可被检测的URL Scheme

字段名:querySchemes

描述:iOS9中对检测应用是否安装的方法做了限制,只允许检测在Info.plist中配置过的LSApplicationQueriesSchemes字段(即白名单列表)里面的应用。所以若代码里面调用了api.appInstalled等方法来检测应用是否安装,那么需要在此字段里面配置被检测应用的URL Scheme才能得到期望的结果。此字段云编译有效。

配置示例:

//多个值之间用英文逗号隔开
<preference name="querySchemes" value="weixin,sinaweibo" />
25
帖子
0
勋章
165
Y币
技术支持-F 发表于 2020-11-12 11:16
info.plist  这个文件删除

本地删除了info.plist ,提交了代码,也配置了
  1.   <preference name="querySchemes" value="sinaweibohd,sinaweibo,weibosdk,weibosdk2.5,weixin,sinaweibo,wechat" />
复制代码

重新打包,自定义load,还是拉不起。安卓能拉起,就是IOS,怎么都拉不起。
380
帖子
4
勋章
6
Y币
搜歌网 发表于 2020-11-13 22:18
本地删除了info.plist ,提交了代码,也配置了

重新打包,自定义load,还是拉不起。安卓能拉起,就是IOS ...

单独测试这个模块看看,其他模块先去掉
25
帖子
0
勋章
165
Y币
本帖最后由 搜歌网 于 2020-11-18 22:40 编辑
技术支持-F 发表于 2020-11-16 16:49
单独测试这个模块看看,其他模块先去掉

QQ图片20201118214010.png

全部删除了,剩余这4个无法删除。
还是无法调起。

把微信APP删除了,再点击的时候提示,拉起提示:APPID参数错误!
重新安装,再点击就无法拉起,一直提示{"status":false}

但是安卓就没问题。都不知啥原因。
PS:微信支付wxPayPlus也是无法拉起。

380
帖子
4
勋章
6
Y币
搜歌网 发表于 2020-11-18 21:43
全部删除了,剩余这4个无法删除。
还是无法调起。

config.xml 配置了吗
25
帖子
0
勋章
165
Y币
本帖最后由 搜歌网 于 2020-11-19 12:01 编辑
  1. <widget id="A6039722570433"  version="0.0.1">

  2.     <name>xxxxxxx</name>

  3.     <description>

  4.         Example For APICloud.

  5.     </description>

  6.     <author email="xxxx**.**" href="http://www**.**/">

  7.         Developer

  8.     </author>
  9.     <content src="index.html" />
  10.     <access origin="*" />
  11.     <preference name="pageBounce" value="false"/>
  12.     <permission name="camera" />
  13.     <preference name="useWKWebView" value="true" />
  14.         <preference name="appBackground" value="rgba(255,255,255,0)"/>
  15.         <preference name="windowBackground" value="rgba(255,255,255,0)"/>
  16.         <preference name="frameBackgroundColor" value="rgba(255,255,255,0)"/>
  17.         <preference name="hScrollBarEnabled" value="false"/>
  18. <preference name="iOS7StatusBarAppearance" value="true" />
  19. <preference name="statusBarAppearance" value="true" />
  20.         <preference name="vScrollBarEnabled" value="false"/>
  21.   <preference name="softInputMode" value="resize"/>
  22.         <preference name="autoLaunch" value="true"/>
  23.         <preference name="fullScreen" value="false"/>
  24.         <preference name="autoUpdate" value="true" />
  25.         <!-- <preference name="smartUpdate" value="false" /> -->
  26.         <preference name="debug" value="true"/>
  27.         <preference name="statusBarAppearance" value="true"/>
  28.         <permission name="readPhoneState" />
  29. <preference name="backgroundMode" value="audio"/>
  30.         <permission name="fileSystem" />
  31.         <permission name="internet" />
  32.         <permission name="hardware" />
  33.   <feature name="aliPayPlus">
  34.       <param name="urlScheme" value="AliPayPlusA6039xxxx33" />
  35.   </feature>
  36.   <feature name="wxPlus">
  37.     <param name="urlScheme" value="wx7d5xxxxx54"/>
  38.     <param name="apiKey" value="wx7d5xxxxx54"/>
  39.     <param name="apiSecret" value="cf2ff07fe2xxxxxxxx091a880d"/>
  40.     <param name="universalLink" value="http://axxxxppx**.**"/>
  41.   </feature>
  42.   <feature name="weiboPlus">
  43.     <param name="urlScheme" value="wb1470xxx147" />
  44.     <param name="apiKey" value="14c6bb8xxx7xxxxxxxbdca9faba" />
  45.     <param name="registUrl" value="http://www**.**/user/open/callback" />
  46.   </feature>
  47.   <preference name="querySchemes" value="sinaweibohd,sinaweibo,weibosdk,weibosdk2.5,weixin,sinaweibo,wechat" />
  48.   <feature name="QQPlus">
  49.    <param name="urlScheme" value="tencent101xxxx" />
  50.    <param name="apiKey" value="1xxxx" />
  51. </feature>
  52.   <!-- <feature name="wxPayPlus">
  53.     <param name="urlScheme" value="wx7d5xxxxx54"/>
  54.     <param name="apiKey" value="wx7d5xxxxx54"/>
  55.     <param name="apiSecret" value="cf2ff07fe2e8df7fbxxxxxxxx5a14ae2091a880d"/>
  56.     <param name="universalLink" value="http://xxxxappx**.**"/>
  57.   </feature> -->
  58. </widget>
复制代码

这个是我的配置
25
帖子
0
勋章
165
Y币
麻烦看看
25
帖子
0
勋章
165
Y币
到底是什么原因无法拉起????试过很多遍了。按照官方的操作还是不行~
123下一页
您需要登录后才可以回帖 登录

本版积分规则