|
|
@@ -9,7 +9,7 @@
|
|
|
hostname = caiyun.feixin.10086.cn
|
|
|
*/
|
|
|
|
|
|
-const lk = new ToolKit(`移动助手`, `CmobileHelper`);
|
|
|
+const lk = new ToolKit(`移动云盘助手`, `CaiyunHelper`);
|
|
|
|
|
|
if (!lk.isExecComm) {
|
|
|
if (lk.isRequest()) {
|
|
|
@@ -39,13 +39,13 @@ function checkHandleRequest() {
|
|
|
|
|
|
function handleSpecToken() {
|
|
|
let headers = $request.headers;
|
|
|
- lk.log('成功获取移动用户token信息');
|
|
|
- lk.setVal('lkCmobileJwtAuthorization', headers.Authorization);
|
|
|
+ lk.log('成功获取移动云盘用户token信息');
|
|
|
+ lk.setVal('lkCmobileCaiyunJwtAuthorization', headers.Authorization);
|
|
|
let xmlStr = lk.getResponseBody();
|
|
|
let xmldoc = createXmldoc();
|
|
|
let root = new xmldoc.XmlDocument(xmlStr);
|
|
|
if(root.valueWithPath("return") == 0){
|
|
|
- lk.setVal('lkCmobileJwtToken', root.valueWithPath("token"));
|
|
|
+ lk.setVal('lkCmobileCaiyunJwtToken', root.valueWithPath("token"));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -56,20 +56,20 @@ function handleUserInfo() {
|
|
|
if (!data) {
|
|
|
return;
|
|
|
}
|
|
|
- lk.log(`获取用户信息`);
|
|
|
+ lk.log(`获取移动云盘用户信息`);
|
|
|
data = JSON.parse(data);
|
|
|
if (data.code == 0) {
|
|
|
- lk.setVal('lkCmobileJwtToken', headers.jwtToken);
|
|
|
- lk.setVal('lkCmobileCookie', headers.Cookie);
|
|
|
- lk.log('成功获取移动用户信息');
|
|
|
- lk.appendNotifyInfo('🎉成功获取移动用户信息');
|
|
|
+ lk.setVal('lkCmobileCaiyunJwtToken', headers.jwtToken);
|
|
|
+ lk.setVal('lkCmobileCaiyunCookie', headers.Cookie);
|
|
|
+ lk.log('成功获取移动云盘用户信息');
|
|
|
+ lk.appendNotifyInfo('🎉成功获取移动云盘用户信息');
|
|
|
} else {
|
|
|
lk.execFail();
|
|
|
- lk.appendNotifyInfo('❌获取移动用户信息失败,请稍后再试');
|
|
|
+ lk.appendNotifyInfo('❌获取移动云盘用户信息失败,请稍后再试');
|
|
|
}
|
|
|
} catch (e) {
|
|
|
lk.execFail();
|
|
|
- lk.appendNotifyInfo('❌获取移动用户信息失败');
|
|
|
+ lk.appendNotifyInfo('❌获取移动云盘用户信息失败');
|
|
|
}
|
|
|
// lk.msg('');
|
|
|
}
|