|
@@ -172,11 +172,12 @@ class Order extends Base
|
|
|
if(empty($pay_type)){
|
|
|
$pay_type = $order_info['pay_type'];
|
|
|
}
|
|
|
+ $price_total = $order_info['price_total'];
|
|
|
$pay_no = get_order_sn();
|
|
|
Db::name('store_order')->where('id',$order_id)->update(array('pay_no'=>$pay_no,'pay_type'=>$pay_type));
|
|
|
if($pay_type == 1){ //微信支付
|
|
|
$notify_url = $this->request->root(true) . '/api/Pay/order_notify';
|
|
|
- $price_total = 0.01;
|
|
|
+ //$price_total = 0.01;
|
|
|
$config = Pay::wx_pay('订单支付',$pay_no,$price_total,$notify_url);
|
|
|
if($config){
|
|
|
Db::commit();
|
|
@@ -187,7 +188,7 @@ class Order extends Base
|
|
|
}
|
|
|
}else{
|
|
|
$notify_url = $this->request->root(true) . '/api/Alipay/order_notify';
|
|
|
- $price_total = 0.01;
|
|
|
+ //$price_total = 0.01;
|
|
|
$config = Alipay::ali_pay('订单支付',$pay_no,$price_total,$notify_url);
|
|
|
if($config){
|
|
|
Db::commit();
|