diff --git a/honey_box/common/request.js b/honey_box/common/request.js index baa9807e..a564b4c1 100644 --- a/honey_box/common/request.js +++ b/honey_box/common/request.js @@ -194,7 +194,7 @@ class RequestManager { header = { 'content-type': 'application/json', client: client, - token: token, + 'Authorization': token ? `Bearer ${token}` : '', adid: uni.getStorageSync('_ad_id'), clickid: uni.getStorageSync('_click_id') } @@ -228,7 +228,7 @@ class RequestManager { header = { 'content-type': 'application/json', - token: token, + 'Authorization': token ? `Bearer ${token}` : '', client: client, } }