Commit d31d988e authored by 任国军's avatar 任国军

add log

parent 4b8b5575
...@@ -230,9 +230,12 @@ class ProductService extends Service { ...@@ -230,9 +230,12 @@ class ProductService extends Service {
ret = R.take(limit)(R.sort(recommendSort)(loanList)); ret = R.take(limit)(R.sort(recommendSort)(loanList));
} else { } else {
const userGjj = await ctx.helper.send_request(this.config.NODE_BASE_URL + '/cassandra-server/gjj/list/' + userId, {}, { method: 'GET' }); const userGjj = await ctx.helper.send_request(this.config.NODE_BASE_URL + '/cassandra-server/gjj/list/' + userId, {}, { method: 'GET' });
ctx.logger.info('userId: ' + userId);
ctx.logger.info('userGjj: ' + JSON.stringify(userGjj.data.ret));
if (userGjj.status !== 200 || ctx.isEmpty(userGjj.data.ret)) { if (userGjj.status !== 200 || ctx.isEmpty(userGjj.data.ret)) {
const loanList = await this.getAllProductsByType(1); const loanList = await this.getAllProductsByType(1);
ret = R.take(limit)(R.sort(recommendSort)(loanList)); ret = R.take(limit)(R.sort(recommendSort)(loanList));
ctx.logger.info('userLoanList: ' + JSON.stringify(ret));
return ret; return ret;
} }
......
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