quguofeng 2 years ago
parent
commit
8d848dd7cb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/controller/api/store/order/StoreOrder.php

+ 4 - 1
app/controller/api/store/order/StoreOrder.php

@@ -78,13 +78,16 @@ class StoreOrder extends BaseController
         $extend = (array)$this->request->param('extend', []);
         $mark = (array)$this->request->param('mark', []);
         $payType = $this->request->param('pay_type');
+        $payment_type = $this->request->param('payment_type',1);  //1.正常购买 2.百分比支付
         $post = (array)$this->request->param('post');
 
         $isPc = $payType === 'pc';
         if ($isPc) {
             $payType = 'balance';
         }
-
+        if($payment_type == 2){
+            return app('json')->fail('参数错误');
+        }
         if (!in_array($payType, StoreOrderRepository::PAY_TYPE, true))
             return app('json')->fail('请选择正确的支付方式');