const code = xxx
const result = await this.ctx.curl(host + '/ByName?keyword=' + word, {
method: 'GET',
dataType: 'json',
headers: {
Authorization: `'APPCODE' ${code}`,
},
});
如代码,用了curl
,要把变量code拼接到headers里,而且那个APPCODE后面是要空格的。如何拼接?
emmmmmmm.
这样不行嘛