diff --git a/FlyCube/MpApi/Controller/PayController.class.php b/FlyCube/MpApi/Controller/PayController.class.php index ce2c3e4..598012a 100644 --- a/FlyCube/MpApi/Controller/PayController.class.php +++ b/FlyCube/MpApi/Controller/PayController.class.php @@ -108,7 +108,7 @@ class PayController extends PublicController // 实例化 Yansongda Pay 并处理回调 $result = Pay::wechat($this->config)->callback(); $outRefundNo = $result['resource']['ciphertext']['out_refund_no']; - $refundType = substr($outRefundNo, strrpos($outRefundNo, '_')); + $refundType = substr($outRefundNo, strrpos($outRefundNo, '_') + 1); $this->publish("demo", $refundType); // 验证成功,处理业务逻辑