Commit fe8008da authored by 姜登's avatar 姜登

gjj

parent 9dd91203
Pipeline #6632 passed with stage
in 7 seconds
...@@ -73,6 +73,9 @@ class OrderController extends Controller { ...@@ -73,6 +73,9 @@ class OrderController extends Controller {
if (orderId) { if (orderId) {
await service.order.update(object); await service.order.update(object);
} else { } else {
if (!userId) {
ctx.throw(400, { message: '请输入userId' });
}
object.orderId = ctx.helper.getUuid(); object.orderId = ctx.helper.getUuid();
await service.order.create(object); await service.order.create(object);
} }
......
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