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