react-native-wechat-lib icon indicating copy to clipboard operation
react-native-wechat-lib copied to clipboard

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

Open SeekingLight233 opened this issue 2 years ago • 2 comments

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

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完全不会执行

SeekingLight233 avatar May 26 '23 09:05 SeekingLight233

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

little-buddy avatar Aug 18 '23 01:08 little-buddy

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

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

SeekingLight233 avatar Aug 18 '23 08:08 SeekingLight233