...
|
...
|
@@ -272,7 +272,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']*1;//订单价格
|
|
|
$price=$order['price']*100;//订单价格
|
|
|
$notify_url=url('order/notify','','',true);//回调地址
|
|
|
$out_trade_no=$order_no.$this->create_noncestr(4);
|
|
|
$wxPay=new WeixinPay($openId,$out_trade_no,$body,$price,$notify_url);
|
...
|
...
|
|