feat: 第三方订单默认为前置定案

master
yin5th 2023-09-27 10:03:04 +08:00
parent b823b9110a
commit da41edc110
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ class Order extends Api
$post['client'] = $this->client; $post['client'] = $this->client;
if ($this->client == ClientEnum::api) { if ($this->client == ClientEnum::api) {
$post['is_api'] = 1;//通过三方API生成的订单 $post['is_api'] = 1;//通过三方API生成的订单
$post['is_frontend'] = 1;//通过三方API生成的订单默认设置前置订单 不需要付款
} }
(new OrderValidate())->goCheck('add', $post); (new OrderValidate())->goCheck('add', $post);
$order = OrderLogic::add($post); $order = OrderLogic::add($post);