Javen205 / JPay

🔥对微信App支付、支付宝App支付、银联APP支付的二次封装,对外提供一个相对简单的接口以及支付结果的回调
http://javen.blog.csdn.net
426 stars 91 forks source link

不可达代码 #14

Open Mingyueyixi opened 1 year ago

Mingyueyixi commented 1 year ago
            PayResult payResult = new PayResult((Map<String, String>) msg.obj);

            Log.e("aliPay call ",payResult.toString());

            String resultStatus = payResult.getResultStatus();
            if (mJPayListener ==null){
                return;
            }
            // https://docs.open.alipay.com/204/105301/
            if(payResult == null) {
                mJPayListener.onPayError(RESULT_ERROR,"结果解析错误");
                return;
            }

这个判断payResult==null永远不成立,new出来的