Commit 83173546 by Sixong.Zhu

u

parent 86f18628
Showing with 5 additions and 1 deletions
...@@ -31,10 +31,14 @@ class OrderService { ...@@ -31,10 +31,14 @@ class OrderService {
productId: string | number; productId: string | number;
srcPlatform: SrcPlatform; srcPlatform: SrcPlatform;
createdType: OperationType; createdType: OperationType;
/**
* 是否强制开启新订单,默认如果有已存在处理中的订单时会直接返回
*/
forceNewOrder?: boolean;
}) { }) {
return this.getSdk() return this.getSdk()
.model(this.generalOrder) .model(this.generalOrder)
.action("addOrder") .action(params.forceNewOrder ? "addOrder" : 'getOrAddOrder')
.addInputs_parameter({ .addInputs_parameter({
ProductId: params.productId, ProductId: params.productId,
SrcPlatform: params.srcPlatform, SrcPlatform: params.srcPlatform,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment