Commit ce7b5edb authored by Hsinli's avatar Hsinli

addd

parent d3c412c9
Pipeline #5906 passed with stage
in 2 seconds
......@@ -65,7 +65,10 @@ class CollectionService extends Service {
ctx.failed("empty house id");
}
if (!ctx.userId) {
return [];
return {
results: [],
rowCount: 0
};
}
let userId = ctx.userId;
let filter = {
......
......@@ -7,11 +7,14 @@ const moment = require('moment');
class searchHistoryService extends Service {
/**
* 添加预约信息
* 添加搜索历史
* @param {object} inputParams
*/
async addSearchHistory(inputParams) {
const { ctx, service } = this;
if (!ctx.userId) {
return false;
}
let data = {
userId: ctx.userId,
appUserId: ctx.appUserId,
......
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