We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
接口请求获取到的id和返回适配器中payload取得的id不一致
for (var i = 0; i < payload.data.length; i++){ let item = { id:payload.data[i].id, name: payload.data[i].name, type: payload.data[i].type, url: payload.data[i].config.url, username: payload.data[i].config.username, password: '******', createTime: payload.data[i].createTime } transformedJson.data.rows.push(item); }
console.log("============transformedJson==============="); console.log(transformedJson); return transformedJson;`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
描述问题:
接口请求获取到的id和返回适配器中payload取得的id不一致
截图或视频:
如何复现(请务必完整填写下面内容):
返回适配器内容:
`console.log("response.data======");
console.log(response.data);
console.log("payload======");
console.log(payload);
var transformedJson = {
status: 0,
msg: "",
data: {
count: payload.totalCount,
rows: []
}
};
for (var i = 0; i < payload.data.length; i++){
let item = {
id:payload.data[i].id,
name: payload.data[i].name,
type: payload.data[i].type,
url: payload.data[i].config.url,
username: payload.data[i].config.username,
password: '******',
createTime: payload.data[i].createTime
}
transformedJson.data.rows.push(item);
}
console.log("============transformedJson===============");
console.log(transformedJson);
return transformedJson;`
The text was updated successfully, but these errors were encountered: