Coder Social home page Coder Social logo

Comments (8)

liusanhong avatar liusanhong commented on June 2, 2024

解决了没有

from react-native-wx.

liusanhong avatar liusanhong commented on June 2, 2024

应该是回调类没写再试下

from react-native-wx.

crystalxmumu avatar crystalxmumu commented on June 2, 2024

RN0.25, 目前安卓上测试 没有返回结果,何解?

from react-native-wx.

xgongya avatar xgongya commented on June 2, 2024

@crystalxmumu 我是这样写的 android确实在有些机器上接收不到回调 有些机器正常的
WechatAPI.login({scope:'snsapi_userinfo'}).
then((result)=> {
ToastAndroid.show('登录成功!', ToastAndroid.LONG);
this.loginWXGET(result.code);

        } ,function(fail){
            ToastAndroid.show('授权失败' + fail, ToastAndroid.LONG);

        }).catch(function (e){
            ToastAndroid.show('其他异常错误' , ToastAndroid.LONG);

        });

from react-native-wx.

xgongya avatar xgongya commented on June 2, 2024

android 支付闪退猜测是传值有问题 纯数字的JSON VALUE值即使加了引号传递到原生层好像变成了数值类型,没有深入研究,只是个猜测,解决办法就是 再加个空字符串强制成文本类型 “1234”+“”

from react-native-wx.

crystalxmumu avatar crystalxmumu commented on June 2, 2024

@xgongya 登录是有登录结果的,我是说在安卓上支付没有返回结果,目前我是发现 如果我这边进行2次微信登录,每次都点关闭,然后再在我原来界面上用账号密码登录,就会闪退
调试模式下,出红屏,报数组越界

from react-native-wx.

crystalxmumu avatar crystalxmumu commented on June 2, 2024

@xgongya 目前支付倒是没出现闪退,我是使用后台将数据传给app的,所以json的key,value 都有自带双引号

from react-native-wx.

nanasheng avatar nanasheng commented on June 2, 2024

@crystalxmumu你支付ok不,我从后台拿到data : {
partnerId: "",
prepayId: "",
nonceStr: "",
timeStamp: "",
package: "",
sign: "",
}的值,微信的支付接口没调起来,返回error,什么信息都没有

from react-native-wx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.