taro icon indicating copy to clipboard operation
taro copied to clipboard

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

Open wxjer opened this issue 6 months ago • 1 comments

相关平台

字节跳动小程序

小程序基础库: 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 。怀疑打包的问题,或者抖音下发小程序代码的问题。

wxjer avatar Aug 27 '24 16:08 wxjer