...
|
...
|
@@ -226,7 +226,7 @@ class OrderController extends HomeBaseController{ |
|
|
$order=Db::name('order')->where(['order_no'=>$order_no,'state'=>2])->find();
|
|
|
$openId=Db::name('users')->where('id',$order['users_id'])->find()['open_id'];
|
|
|
$body='支付';
|
|
|
$price=$order['price']*100;//订单价格
|
|
|
$price=$order['price'];//订单价格
|
|
|
$notify_url=url('order/notify','','',true);//回调地址
|
|
|
$out_trade_no=$order_no.rand(1000,9999);
|
|
|
$wxPay=new WeixinPay($openId,$out_trade_no,$body,$price,$notify_url);
|
...
|
...
|
|