Commit 79d6a17d authored by Hsinli's avatar Hsinli

addd

parent 65e7dc7e
Pipeline #8697 passed with stage
in 4 seconds
...@@ -32,8 +32,8 @@ class CollectionService extends Service { ...@@ -32,8 +32,8 @@ class CollectionService extends Service {
connect_id: inputParams.id, connect_id: inputParams.id,
state: 1, state: 1,
} }
let ret = await ctx.realestateModel.Collection.add(data); let retId = await ctx.realestateModel.Collection.add(data);
return { id: ret.id }; return { id: retId };
} }
/** /**
......
...@@ -40,8 +40,8 @@ class OrderService extends Service { ...@@ -40,8 +40,8 @@ class OrderService extends Service {
order_at: inputParams.time, order_at: inputParams.time,
state: 1, state: 1,
}; };
let ret = await ctx.realestateModel.Order.add(data); let retId = await ctx.realestateModel.Order.add(data);
return { id: ret.id, msg: '预约成功' }; return { id: retId, msg: '预约成功' };
} }
/** /**
......
...@@ -22,8 +22,8 @@ class searchHistoryService extends Service { ...@@ -22,8 +22,8 @@ class searchHistoryService extends Service {
house_style: inputParams.type, house_style: inputParams.type,
state: 1, state: 1,
}; };
let ret = await ctx.realestateModel.SearchHistory.add(data); let retId = await ctx.realestateModel.SearchHistory.add(data);
return { id: ret.id }; return { id: retId };
} }
/** /**
......
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