[更新]修改微信支付测试退款操作

This commit is contained in:
邹景立 2017-04-14 12:49:15 +08:00
parent 755c78621a
commit a9b65d48ec

View File

@ -42,7 +42,6 @@ class Config extends BasicAdmin {
if ($this->request->isGet()) { if ($this->request->isGet()) {
$this->assign('title', '微信接口配置'); $this->assign('title', '微信接口配置');
return view(); return view();
} }
$data = $this->request->post(); $data = $this->request->post();
foreach ($data as $key => $vo) { foreach ($data as $key => $vo) {
@ -72,7 +71,7 @@ class Config extends BasicAdmin {
return json(['code' => 2, 'order_no' => $order_no]); return json(['code' => 2, 'order_no' => $order_no]);
} }
// 订单号未支付生成支付二维码URL // 订单号未支付生成支付二维码URL
$url = PayService::createWechatPayQrc($pay, $order_no, 1, '扫码支付测试!'); $url = PayService::createWechatPayQrc($pay, $order_no, 1, '微信扫码支付测试!');
if ($url !== false) { if ($url !== false) {
return json(['code' => 1, 'url' => $url, 'order_no' => $order_no]); return json(['code' => 1, 'url' => $url, 'order_no' => $order_no]);
} }
@ -99,6 +98,7 @@ class Config extends BasicAdmin {
} }
$this->error("操作退款失败,{$pay->errMsg}[{$pay->errCode}]"); $this->error("操作退款失败,{$pay->errMsg}[{$pay->errCode}]");
break; break;
// 显示支付配置界面
default: default:
$this->assign('title', '微信支付配置'); $this->assign('title', '微信支付配置');
return view(); return view();