javascript
export function groupLoginAPI(xmlData) {
return http.post('/tis/group/1.0/login', xmlData, {
headers: {
'Content-Type': 'application/xml',
'X-Requested-With': 'AAServer/4.0',
}
})
}
xml
import {groupLoginAPI} from "../api/user";
function (e) {
//xml格式传参
let groupXmlData = `<Login>
<UserDN>${USERDN}</UserDN>
<aasToken>${SSOTOKEN}</aasToken>
<pushToken>${PUSHTOKEN}</pushToken>
<APPID>1800</APPID>
</Login>`;
groupLoginAPI(groupXmlData).then((res) => {
console.log(res);
});
}