little-snow-fox / react-native-wechat-lib

🚀 WeChat login, share, favorite and payment for React-Native on iOS and Android
MIT License
646 stars 126 forks source link

debug包正常,但release包下拿不到微信支付结果 #240

Open SeekingLight233 opened 1 year ago

SeekingLight233 commented 1 year ago

首先确认了包混淆是关闭的。

def enableProguardInReleaseBuilds = false

然后在源码的 onResp 实现处加了log

    @Override
    public void onResp(BaseResp baseResp) {
        // print baseResp
        Log.d("WeChatModule", baseResp.toString());
        // more
    }

debug包下会执行 onResp 回调,同时可以拿到rn层的 pay 的结果, 但是在release包下onResp完全不会执行

little-buddy commented 10 months ago

这个你后续找到原因了嘛?

SeekingLight233 commented 10 months ago

这个你后续找到原因了嘛?

客户暂时没发现,我们也暂时没关注这个问题😂