Commit c317b7ce by 王昆

gsb

parent 46fd01aa
......@@ -8,7 +8,7 @@
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/esign-sve-merchant/main.js"
"program": "${workspaceFolder}/esign-sve-order/main.js"
}
]
}
\ No newline at end of file
......@@ -42,7 +42,7 @@ class EorderproductService extends ServiceBase {
});
let ids =[];
if(!p_list || p_list.length==0){
return system.getResult([]);
return system.getResultSuccess([]);
}else{
for (let item of p_list) {
ids.push(item.id);
......@@ -57,11 +57,7 @@ class EorderproductService extends ServiceBase {
},
attributes:['product_id']
});
let productIds=[];
for (let ele of list) {
productIds.push(ele.product_id);
}
return system.getResult(Array.from(new Set(productIds)));
return system.getResultSuccess(list);
}
}
......
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 to comment