Commit 4146430d authored by 李尚科's avatar 李尚科

fix

parent e92ffd74
Pipeline #6570 passed with stage
in 8 seconds
......@@ -14,16 +14,17 @@ class RentalHouseController extends Controller {
const token = ctx.token;
const device_id = ctx.device_id;
const device_login_id = ctx.device_login_id;
console.info(ctx.request.headers);
const headers = {
// app_user_id: app_user_id,
// device_id: device_id || '0ef939ea-9bb7-4d21-b98a-53bdad418ad9',
// device_login_id: device_login_id,
// token: token,
// uid: user_id,
Cookie: `app_user_id=${app_user_id}; device_id=${device_id}; device_login_id=${device_login_id}; token=${token}; user_id=${user_id};`
cookie: ctx.request.headers.cookie
}
// house_h5_rental_home_banners
const banners_result = await ctx.helper.send_request(this.config.NODE_BASE_URL + '/51app/api/block/all', { alias: '51fangc_rental_home_banners' }, { method: 'GET', dataType: 'json', headers: headers });
const banners_result = await ctx.helper.send_request(this.config.NODE_BASE_URL + '/51app/api/block/all', { alias: '51fangc_rental_home_banners' }, { method: 'GET', dataType: 'json', headers: headers});
let banners = [];
if (banners_result.status === 200) {
banners = banners_result.data.results;
......
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