1. First of all, get the order list through the query, and then add the user name and user password for each order object through the for loop. When I console.log, the console has output, but when I, ctx.body = {data:orderList}, the result obtained asynchronously on the front-end page does not have user name and user attributes. Please see the following figure
background koa2 code:
:
Why do you print it out at the back end and get it asynchronously without the user_name and user_headurl attributes I added? Ask for help