[更新]增加微信支付测试退款

This commit is contained in:
邹景立 2017-04-13 23:11:48 +08:00
parent ec32f818e8
commit a617b1641f

View File

@ -81,7 +81,6 @@ class Config extends BasicAdmin {
break;
// 检查订单是否支付成功
case 'refund':
$order_no = session('pay-test-order-no');
if (empty($order_no)) {
$this->error('测试订单号不存在,请重新开始支付测试!');
@ -90,7 +89,7 @@ class Config extends BasicAdmin {
$this->error('测试订单未支付或未收到微信支付通过!');
}
$pay = &load_wechat('pay');
if (!file_exists($pay->config['ssl_cer']) || !file_exists($pay->config['ssl_key'])) {
if (!file_exists($pay->ssl_cer) || !file_exists($pay->ssl_key)) {
$this->error('微信支付双向证书异常,无法完成退款操作!');
}
$refund_no = DataService::createSequence(10, 'wechat-pay-test');