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

调用抖音支付api tt.requestOrder 错误 requestOrder:TypeError: s(...).requestOrder is not a function #16414

Open
wxjer opened this issue Aug 27, 2024 · 1 comment
Labels
F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x

Comments

@wxjer
Copy link

wxjer commented Aug 27, 2024

相关平台

字节跳动小程序

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

复现步骤

Taro 3.6.30 ,安卓某些机型某些情况(未知)下调用支付tt.requestOrder失败,错误日志只有:requestOrder:TypeError: s(...).requestOrder is not a function,ios正常,这其中的某些机型再多次杀掉小程序 抖音客户端之后,有时候调用就会成功,不会报这个错误。

期望结果

正常支付

实际结果

失败

环境信息

👽 Taro v3.6.34


  Taro CLI 3.6.34 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 20.15.1 - D:\soft\sdk\node\node.EXE
      Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 10.7.0 - D:\soft\sdk\node\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.30 => 3.6.30
      @tarojs/components: 3.6.30 => 3.6.30
      @tarojs/helper: 3.6.30 => 3.6.30
      @tarojs/plugin-framework-react: 3.6.30 => 3.6.30
      @tarojs/plugin-platform-h5: 3.6.30 => 3.6.30
      @tarojs/plugin-platform-tt: 3.6.30 => 3.6.30
      @tarojs/plugin-platform-weapp: 3.6.30 => 3.6.30
      @tarojs/react: 3.6.30 => 3.6.30
      @tarojs/runtime: 3.6.30 => 3.6.30
      @tarojs/service: 3.6.30 => 3.6.30
      @tarojs/shared: 3.6.30 => 3.6.30
      @tarojs/taro: 3.6.30 => 3.6.30
      @tarojs/taro-h5: 3.6.30 => 3.6.30
      @tarojs/taro-loader: 3.6.30 => 3.6.30
      @tarojs/webpack5-runner: 3.6.30 => 3.6.30
      babel-preset-taro: 3.6.30 => 3.6.30
      eslint-config-taro: 3.6.30 => 3.6.30
      react: ^18.0.0 => 18.3.1

补充信息

怀疑是打包的问题?或者跟抖音某些sdk版本有关,测试机中,iOS都正常,部分安卓异常,而这部分中,有的多次杀死 重启抖音,也会变得正常。错误的日志全是.requestOrder is not a function 。怀疑打包的问题,或者抖音下发小程序代码的问题。

@taro-bot2 taro-bot2 bot added F-react Framework - React T-tt Target - 编译到字节跳动小程序 V-3 Version - 3.x labels Aug 27, 2024
This was referenced Aug 31, 2024
@hzdavid
Copy link

hzdavid commented Sep 21, 2024

后来怎么解决的啊、

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

No branches or pull requests

3 participants
@hzdavid @wxjer and others