HTTP/1.1 200
Content-Type: text/html;charset=UTF-8
Content-Language: zh-CN
Content-Length: 797
Date: Sat, 08 Jun 2024 09:50:01 GMT
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<script src="/resources/js/cx-sdk.js"></script>
<script type="text/javascript">
var cxApi=null;
async function login(params) {
try {
const authcode =await cxApi.login(params);
window.location.href = "/index?oauth_code=" + authcode.authcode;
return true;
} catch (e) {
alert(e);
return false;
}
}
var cxApi = null;
cxSdk.cxJsBridgeWebApiInit("APPA4BD1A1BB71F230FAB566072", function (data) {
cxApi = data;
login({appkey: "APPA4BD1A1BB71F230FAB566072", enterpriseId: '837356051617792'});
}, function (error) {
console.log(error);
});
</script>
</body>
</html>