|
@@ -165,6 +165,10 @@ class OrderController extends O2oBaseController{
|
|
|
$balance_log->type = 'order';
|
|
|
$balance_log->amount = $balance;
|
|
|
$balance_log->save(true);
|
|
|
+
|
|
|
+ if($order->final_price>0){
|
|
|
+ $order->pay_channel = 'balance';
|
|
|
+ }
|
|
|
$order->status = 1;
|
|
|
}else{
|
|
|
$order->status = 0;
|
|
@@ -260,6 +264,8 @@ class OrderController extends O2oBaseController{
|
|
|
}
|
|
|
$str = isset($str)&&$str?$str:'上门';
|
|
|
$amount = ceil($order->pay_price*1000)/10;
|
|
|
+
|
|
|
+
|
|
|
$result = Service::factory('PayService')->Pay($pay_channel,$amount,(string)$order->_id,$str,$str,$user_obj->wx_pub_openid);
|
|
|
if($result === false){
|
|
|
CommonFn::requestAjax(false,'支付遇到点问题了,请稍候再试');
|