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

android 支付闪退 #15

Open
xgongya opened this issue Sep 12, 2016 · 8 comments
Open

android 支付闪退 #15

xgongya opened this issue Sep 12, 2016 · 8 comments

Comments

@xgongya
Copy link

xgongya commented Sep 12, 2016

rn版本0.30 , android 支付闪退,android测试版本5.1 ,6.0 。登录没有问题。
IOS没有任何问题!

@liusanhong
Copy link

解决了没有

@liusanhong
Copy link

应该是回调类没写再试下

@crystalxmumu
Copy link

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

@xgongya
Copy link
Author

xgongya commented Sep 16, 2016

@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);

        });

@xgongya
Copy link
Author

xgongya commented Sep 16, 2016

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

@crystalxmumu
Copy link

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

@crystalxmumu
Copy link

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

@nanasheng
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants