我对uni_modules/uni-pay/components/uni-pay.vue文件做了一点更改,定位在“529行左右,// 支付成功后的逻辑注释”下面,
// 支付成功后的逻辑
paySuccess(res = {}) {
this.closePopup("payPopup");
this.closePopup("payConfirmPopup");
this.clearQrcode();
//生成本地VIP资格
uni.setStorageSync("VIP",true);
if(res.pay_order.order_no){
uni.setStorageSync("order_no",res.pay_order.order_no);
};
if (this.toSuccessPage) {
// 跳转到支付成功的内置页面
this.pageToSuccess(res);
}
this.$emit("success", res);
},
目的是支付成功后生成一个本地文件,标示用户开通了VIP,但是实际运行的时候有大概1%的用户未能成功执行。
我配置的是微信支付,下图是用户的投诉:

请问是什么原因?