Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taro 3.4.5 及以后的版本存在重大bug #11703

Closed
TheKonka opened this issue Apr 23, 2022 · 3 comments · Fixed by #11714
Closed

taro 3.4.5 及以后的版本存在重大bug #11703

TheKonka opened this issue Apr 23, 2022 · 3 comments · Fixed by #11714
Assignees
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Milestone

Comments

@TheKonka
Copy link
Member

相关平台

支付宝小程序

小程序基础库: 2.23.2
使用框架: React

复现步骤

6ead869

可见于这个commit

比如支付宝扫码,此时 key== item == 'scan' ,apiItem = apiDiff[item] == undefined , 导致扫码无结果返回

其他相关api 也是类似 失效了

3.4.4 是正常的

期望结果

扫码有返回

实际结果

扫码无返回

环境信息

👽 Taro v3.4.6


  Taro CLI 3.4.6 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.14.2 - D:\nodejs\node.EXE
      Yarn: 1.22.17 - C:\Users\08143\AppData\Roaming\npm\yarn.CMD
      npm: 8.5.0 - D:\nodejs\npm.CMD
@AdvancedCat
Copy link
Member

你是如何调用scan的? Taro.scan() or Taro.scanCode() ?

正确的应该用 Taro.scanCode() 进行调用

@AdvancedCat AdvancedCat self-assigned this Apr 24, 2022
@TheKonka
Copy link
Member Author

你是如何调用scan的? Taro.scan() or Taro.scanCode() ?

正确的应该用 Taro.scanCode() 进行调用

当然是 scanCode

https://github.com/konka-king/alipay-pickerview

我demo放上去了,点击按钮就扫码,success 属性方法 接收不到回调参数

@ZakaryCode ZakaryCode added V-3 Version - 3.x F-react Framework - React T-alipay Target - 编译到支付宝小程序 labels Apr 24, 2022
@AdvancedCat
Copy link
Member

AdvancedCat commented Apr 24, 2022

感谢反馈!问题已定位,将合并至下个patch版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants