|
|
@@ -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());
|