pay debug
parent
944fed3ec1
commit
49801a7cd1
|
|
@ -230,7 +230,7 @@ class Order extends Common
|
|||
public function QrcodePay()
|
||||
{
|
||||
$params = input();
|
||||
if(empty($params['url']) || empty($params['order_no']))
|
||||
if(empty($params['url']) || empty($params['order_no']) || empty($params['name']) || empty($params['msg']))
|
||||
{
|
||||
$this->assign('msg', '参数有误');
|
||||
return $this->fetch('public/tips_error');
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
<div class="am-panel-bd">
|
||||
<img class="qrcode-images am-img-thumbnail" src="{{:MyUrl('index/qrcode/index', ['content'=>urlencode($url)])}}">
|
||||
</div>
|
||||
<div class="tips">扫码支付</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -164,7 +164,13 @@ class WeixinMini
|
|||
{
|
||||
// web支付
|
||||
case 'NATIVE' :
|
||||
$url = MyUrl('index/order/qrcodepay', ['url'=>urlencode($data['code_url']), 'order_no'=>$params['order_no']]);
|
||||
$pay_params = [
|
||||
'url' => urlencode($data['code_url']),
|
||||
'order_no' => $params['order_no'],
|
||||
'name' => '微信支付',
|
||||
'msg' => '打开微信APP扫一扫进行支付',
|
||||
];
|
||||
$url = MyUrl('index/order/qrcodepay', $pay_params);
|
||||
$result = DataReturn('success', 0, $url);
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue