1557492053 1 year ago
parent
commit
358f869b7d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Order.php

+ 1 - 1
application/api/controller/Order.php

@@ -198,7 +198,7 @@ class Order extends Api
         ]))->checkBody();
         if (!in_array($params['payment_type'], ALL_ORDER_PAY_TYPE))
             $this->error("支付方式错误!");
-        if (!in_array($params['platform'], ["web", "applet"]))
+        if (!in_array($params['platform'], ["web", "applet", "app"]))
             $this->error("平台错误!");
         $r = $this->service->payment($this->user->id, $params['order_id'], $params['payment_type'], $params["platform"], $params["description"]);
         $r->code() == 1 ? $this->success($r->data()) : $this->error($r->msg(), null, $r->code());