Commit ad9d1923 authored by gengshaojing's avatar gengshaojing

add: 分类改为逗号传参

parent 042cf35f
......@@ -16,6 +16,8 @@ exports.httpReq = (ctx, opts) => {
opts.qs = { ...defaultQs, ...ctx.request.query, ...opts.qs };
console.log(opts);
request(opts, (err, res, body) => {
console.info(`[Api] httpReq (${opts.url}, user:[${opts.qs.op_cur_user}]) spent: ${+new Date() - time_start}ms`);
......
......@@ -205,6 +205,8 @@
dataMap.loading = true;
try {
const params = Object.assign({}, dataMap.searchForm);
params.business_circle_ids = params.business_circle_ids.join(",");
params.tag_ids = params.tag_ids.join(",");
const { page, pageSize } = dataMap.pagination;
params.offset = page === 1 ? 0 : (page - 1) * pageSize;
const { result } = await ActivityService.getPlaceList(params);
......
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