|
@@ -25,7 +25,7 @@
|
|
|
//导航点击 默认导航 (其实导航 没有树形分类的)
|
|
|
//U.MD.DK.LL.MRHYHWP = function (UDOD, UIE, userid) {
|
|
|
// var _UDE = U.MD.DK.M.diskOperatingSwitch(userid)[1][0]; //转到个人使用网盘
|
|
|
-// if (!UIE && US.userInfo.UserId != _UDE.UserId) {
|
|
|
+// if (!UIE && US.userInfo.userid != _UDE.UserId) {
|
|
|
// U.alert("他人的私密空间无法查看");
|
|
|
// return;
|
|
|
// } //私密地方必须本人操作
|
|
@@ -54,7 +54,7 @@
|
|
|
////如果是我的协同或者是他人邀请的
|
|
|
//U.MD.DK.LL.FCKDXWPDH = function (UDID) {
|
|
|
// if (UDID == "22222222-2222-2222-2222-222222222222") {
|
|
|
-// U.A.Request(US.CD, [US.DB, "UseStudio_Office", "GetCollaborativeDocument", US.userInfo.UserId, US.EMPTYGUID, US.EMPTYGUID, 0, 0, 100], function (r) {
|
|
|
+// U.A.Request(US.CD, [US.DB, "UseStudio_Office", "GetCollaborativeDocument", US.userInfo.userid, US.EMPTYGUID, US.EMPTYGUID, 0, 0, 100], function (r) {
|
|
|
// var _array = [];
|
|
|
// for (var i = 0; i < r.value.length; i++) {
|
|
|
// _array.push({
|
|
@@ -85,7 +85,7 @@
|
|
|
// });
|
|
|
// } else if (UDID == "11111111-1111-1111-1111-111111111111") {
|
|
|
|
|
|
-// U.A.Request(US.CD, [US.DB, "UseStudio_Office", "GetCollaborativeDocument", US.userInfo.UserId, "00000000-0000-0000-0000-000000000000", "", 0, 0, 100], function (r) {
|
|
|
+// U.A.Request(US.CD, [US.DB, "UseStudio_Office", "GetCollaborativeDocument", US.userInfo.userid, "00000000-0000-0000-0000-000000000000", "", 0, 0, 100], function (r) {
|
|
|
// var _array = [];
|
|
|
// for (var i = 0; i < r.value.length; i++) {
|
|
|
// _array.push({
|
|
@@ -283,7 +283,7 @@ r[2]为图片文件流。
|
|
|
|
|
|
//检测当前用户输入的密码是否正确
|
|
|
// U.MD.U.P.CNP = function (UDOD, UTF, cb) {
|
|
|
-// U.A.Request(US.AUTH, ["Check" + (UTF ? "SecurityCode" : "Password"), US.userInfo.UserId, UDOD.value]), U.MD.U.P.AsynCNP, ["", UDOD, UTF, cb];
|
|
|
+// U.A.Request(US.AUTH, ["Check" + (UTF ? "SecurityCode" : "Password"), US.userInfo.userid, UDOD.value]), U.MD.U.P.AsynCNP, ["", UDOD, UTF, cb];
|
|
|
// }
|
|
|
|
|
|
//异步判断密码是否正确
|
|
@@ -325,7 +325,7 @@ r[2]为图片文件流。
|
|
|
//#region 检查资料完整度
|
|
|
|
|
|
// U.MD.U.P.CheckDataIntegrity = function () {
|
|
|
-// if (US.userInfo.UserId) {
|
|
|
+// if (US.userInfo.userid) {
|
|
|
// var i, j = 0,
|
|
|
// _UDE = ["UserNickName", "UserEmail",
|
|
|
// "UserTelephoneNumber", "TrueName", "UserIDCard", "Country",
|
|
@@ -671,7 +671,7 @@ U.MD.DK.VW.XWPDYH = function (UDE, UDOD, userid) {
|
|
|
_UDTD = $$("div", {
|
|
|
"title": (_USN = UDE[i].UserNickName || UDE[i].GroupManageDescript || UDE[i].GroupManageName),
|
|
|
"className": "U_MD_DK_RZO " + (_UGID ? "U_MD_DK_RZOKO" : "U_MD_DK_RZOK")
|
|
|
- // "onclick": _UGID ? function(){U.MD.DK.LL.RecordNav, [[[U.MD.DK.LE.openFileDirectory, [UDE[i], US.userInfo.UserId]]]]]] : [[U.MD.D.I.openApplication("Disk", { "userid": UDE[i].UserId, "directoryid": US.FTPFOLDERID});}
|
|
|
+ // "onclick": _UGID ? function(){U.MD.DK.LL.RecordNav, [[[U.MD.DK.LE.openFileDirectory, [UDE[i], US.userInfo.userid]]]]]] : [[U.MD.D.I.openApplication("Disk", { "userid": UDE[i].UserId, "directoryid": US.FTPFOLDERID});}
|
|
|
}, _UDFD);
|
|
|
_UDSD = $$("div", { "className": _UGID ? "U_MD_DK_RZOQI" : "U_MD_DK_RZOKI" }, _UDTD);
|
|
|
if (_UGID) { _UAE = U.MD.DK.VW.XWPDYHTX(_UDSD, _UGID); }
|
|
@@ -770,7 +770,7 @@ U.MD.DK.LE.ApplyDnsEnd = function (UDID) {
|
|
|
//申请域名判断
|
|
|
U.MD.DK.LE.aDomain = function (userid, UGE) {
|
|
|
if (!U.MD.U.L.isLogin()) { //登录使用
|
|
|
- var _UDID = UGE[1][1], _UUID = US.userInfo.UserId;
|
|
|
+ var _UDID = UGE[1][1], _UUID = US.userInfo.userid;
|
|
|
if (UGE[4][_UDID].UserId == _UUID || userid == _UUID) { //本人ftp群文件夹允许
|
|
|
var _UDE = U.MD.DK.M.diskOperatingSwitch(userid);
|
|
|
if (_UDE[1][1]) { U.UF.UI.confirm("是否申请域名生成站点", function () { U.MD.DK.LE.aDnsF(_UDE[1][1]); }) }; //当前目录申请
|
|
@@ -781,8 +781,8 @@ U.MD.DK.LE.aDomain = function (userid, UGE) {
|
|
|
|
|
|
//判断当前目录是否生成域名解析
|
|
|
U.MD.DK.LE.GetDns = function (UDID, cb) {
|
|
|
- //U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "UD_S_CountDns", US.userInfo.UserId, UDID], U.MD.DK.LE.AsynGetDns, ["", UDID, cb]);
|
|
|
- // U.A.Request(US.AUTH,"UseStudioDisk.CountDns", [US.userInfo.UserId, UDID], U.MD.DK.LE.AsynGetDns, ["", UDID, cb]);
|
|
|
+ //U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "UD_S_CountDns", US.userInfo.userid, UDID], U.MD.DK.LE.AsynGetDns, ["", UDID, cb]);
|
|
|
+ // U.A.Request(US.AUTH,"UseStudioDisk.CountDns", [US.userInfo.userid, UDID], U.MD.DK.LE.AsynGetDns, ["", UDID, cb]);
|
|
|
}
|
|
|
|
|
|
///获取dns解析次数异步
|
|
@@ -823,9 +823,9 @@ U.MD.DK.LE.aDnsF = function (UDID) {
|
|
|
|
|
|
//确定申请域名
|
|
|
U.MD.DK.LE.eaDomain = function (UDID, UDOD) {
|
|
|
- //U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "UD_I_AddDns", US.userInfo.UserId, UDID, 0], U.MD.DK.LE.AsyneaDomain, ["", UDID, UDOD]);
|
|
|
+ //U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "UD_I_AddDns", US.userInfo.userid, UDID, 0], U.MD.DK.LE.AsyneaDomain, ["", UDID, UDOD]);
|
|
|
|
|
|
- //U.A.Request(US.AUTH,"UseStudioDisk.AddDns", [US.userInfo.UserId, UDID], U.MD.DK.LE.AsyneaDomain, ["", UDID, UDOD]);
|
|
|
+ //U.A.Request(US.AUTH,"UseStudioDisk.AddDns", [US.userInfo.userid, UDID], U.MD.DK.LE.AsyneaDomain, ["", UDID, UDOD]);
|
|
|
}
|
|
|
|
|
|
//申请域名异步
|
|
@@ -943,7 +943,7 @@ U.MD.DK.LE.USOS = function (UDID, UTH, UFT, cb, UTF, UPID, UIN) {
|
|
|
var _UDPD, _UTF,
|
|
|
_userdisk = US.disk.UserDisk,
|
|
|
_userid = _userdisk.userInfo.UserId, //用户ID
|
|
|
- _UYID = US.userInfo.UserId,
|
|
|
+ _UYID = US.userInfo.userid,
|
|
|
_UDE = U.UF.C.isString(UDID) ? (_userdisk[4][UDID] ? _userdisk[4][UDID] : UDID) : UDID;
|
|
|
UDID = _UDE ? _UDE.UserDirectoryID : UDID;
|
|
|
if (_UDE.UserFilesID != undefined) { UDID = _UDE.UserFilesID; _UDE.UserFilesServerName = "" }
|
|
@@ -963,7 +963,7 @@ U.MD.DK.LE.USOS = function (UDID, UTH, UFT, cb, UTF, UPID, UIN) {
|
|
|
_userdisk[1][1] = UPID = (userid == _userid) ? US.MYFOLDERID : US.FTPFOLDERID;
|
|
|
}; //选择目录
|
|
|
if (UIN) {
|
|
|
- return U.MD.DK.RE.AF(UFT, UIN, function () { cb(); }, US.userInfo.UserId, true);
|
|
|
+ return U.MD.DK.RE.AF(UFT, UIN, function () { cb(); }, US.userInfo.userid, true);
|
|
|
} //直接新建
|
|
|
else {
|
|
|
_userdisk = US.disk.UserDisk;
|
|
@@ -1027,7 +1027,7 @@ U.MD.DK.LE.GM = function (UDE) {
|
|
|
* @param {object} ajax异步数据
|
|
|
*/
|
|
|
U.MD.DK.LE.openDownloadPage = function (USN, UN, userid, UFID, UTF) {
|
|
|
- var _UTF = US.userInfo.UserId == userid,
|
|
|
+ var _UTF = US.userInfo.userid == userid,
|
|
|
_UMT = USN.split(".")[1],
|
|
|
_el = event ? event.srcElement : null;
|
|
|
U.alert("正在努力的打开中,请稍后");
|
|
@@ -1195,7 +1195,7 @@ U.MD.DK.C.WPTDSY = function (UDOD, cb) {
|
|
|
// dirid = diskinfo.directoryid;
|
|
|
// }
|
|
|
// var _diskuserid = diskinfo.userInfo.UserId, //网盘用户id
|
|
|
-// _userid = US.userInfo.UserId, //用户id
|
|
|
+// _userid = US.userInfo.userid, //用户id
|
|
|
// _permis = U.MD.DK.C.readWritePermission(dirid, diskinfo); //判断是否具有添加网盘的操作权限 判断是否有添加的权限 和 获取的权限
|
|
|
|
|
|
// //根据上面调用的函数返回的目录的信息,如果没有返回说明操作的不是目录
|
|
@@ -1228,9 +1228,9 @@ U.MD.DK.C.WPTDSY = function (UDOD, cb) {
|
|
|
//文件置顶
|
|
|
U.MD.DK.RE.DWJXZ = function (UFID, UV) {
|
|
|
//#error 文件添加指定审核
|
|
|
- U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "UD_I_AddFileEX", US.userInfo.UserId, UFID, UV == "true" ? 1 : 0], function () { U.alert("成功添加置顶"); });
|
|
|
+ U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "UD_I_AddFileEX", US.userInfo.userid, UFID, UV == "true" ? 1 : 0], function () { U.alert("成功添加置顶"); });
|
|
|
|
|
|
- // U.A.Request(US.AUTH,"UseStudioDisk.WJXG", [US.userInfo.UserId, UFID, UV], function(){U.alert("成功添加置顶");});
|
|
|
+ // U.A.Request(US.AUTH,"UseStudioDisk.WJXG", [US.userInfo.userid, UFID, UV], function(){U.alert("成功添加置顶");});
|
|
|
}
|
|
|
|
|
|
//#endregion
|
|
@@ -1240,7 +1240,7 @@ U.MD.DK.RE.DWJXZ = function (UFID, UV) {
|
|
|
U.MD.DK.RE.TSXXML = function () {
|
|
|
var i, _dirid, _fileinfo, _UKE, _UCE,
|
|
|
_UTF = 1,
|
|
|
- _userid = US.userInfo.UserId,
|
|
|
+ _userid = US.userInfo.userid,
|
|
|
_diskinfo = US.disk.UserDisk; //获取文件权限
|
|
|
if (_diskinfo[1][2] == _userid || _diskinfo[2]) {
|
|
|
if (_diskinfo[2] || ((_fileinfo = U.Json.RecurD(_diskinfo[0], null, { "UserDirectoryID": _diskinfo[1][1] }, "UserDirectoryParentID"), _UCE = _fileinfo[_fileinfo.length - 1], _dirid = _UCE.UserDirectoryID) && _UCE.GroupID || _dirid == US.FTPFOLDERID)) { //判断是否群文件推送或者是目录推送
|
|
@@ -1274,7 +1274,7 @@ U.MD.DK.RE.TSXXML = function () {
|
|
|
// _UJE = [],
|
|
|
// _USE = [0, 11, 17],
|
|
|
// _UTP = event.type,
|
|
|
-// _userid = US.userInfo.UserId,
|
|
|
+// _userid = US.userInfo.userid,
|
|
|
// _UGE = !userid ? US.disk.UserDisk : U.MD.DK.M.diskOperatingSwitch(userid),
|
|
|
// _UIE = _UGE[1][4] == "Detailed",
|
|
|
// _UDTD = U.selectEl("#" + (_UGE[2] ? "U_MD_DK_MO" : "U_MD_DK_M"), _UGE.formel),
|
|
@@ -1792,7 +1792,7 @@ U.UF.E.unifiedFormat = function (allEle) {
|
|
|
U.MD.DK.RE.MBC = function (UDID, UST, UTF, UTP) {
|
|
|
var _UAL,
|
|
|
_UFT = false,
|
|
|
- _userid = US.userInfo.UserId,
|
|
|
+ _userid = US.userInfo.userid,
|
|
|
_diskinfo = US.disk.UserDisk,
|
|
|
_fileinfo = U.Json.select(_diskinfo.directoryOrFiles, { "UserDirectoryParentID": UDID
|
|
|
}),
|
|
@@ -1830,7 +1830,7 @@ U.MD.DK.RE.Prompt = function (UTS, UH, UW, UC, UCY, UDOD) {
|
|
|
|
|
|
//修改文件名
|
|
|
U.MD.DK.RE.MFN = function (UDE, UST, cb, userid) {
|
|
|
- userid = userid || US.userInfo.UserId;
|
|
|
+ userid = userid || US.userInfo.userid;
|
|
|
var _UEN = UDE.UserDirectoryExtendType,
|
|
|
_diskinfo = U.MD.DK.M.diskOperatingSwitch(userid),
|
|
|
_USN = UST.replaceHtmlSign();
|
|
@@ -2030,7 +2030,7 @@ U.MD.DK.RE.shear = function (UDE, TF) {
|
|
|
break; //登录注册识别
|
|
|
case "UD_DiskCon": //查看新文件
|
|
|
US.disk.DiskDaren["SE"] = { UserFilesID: UDE[0] };
|
|
|
- U.MD.U.L.setLoginCallBack(function () { U.MD.D.I.openApplication("Disk", { "userid": US.userInfo.UserId, "directoryid": UDE[1] }) });
|
|
|
+ U.MD.U.L.setLoginCallBack(function () { U.MD.D.I.openApplication("Disk", { "userid": US.userInfo.userid, "directoryid": UDE[1] }) });
|
|
|
break;
|
|
|
//case "ftp": U.MD.DK.H.SYWPQH(this, 1);
|
|
|
//break; //查看ftp共享
|
|
@@ -2040,7 +2040,7 @@ U.MD.DK.RE.shear = function (UDE, TF) {
|
|
|
case "1": //添加好友消息
|
|
|
U.selectEl("#U_MD_D_MG_OA").Child()[0].onclick();
|
|
|
break;
|
|
|
- case "3": (US.userInfo.UserId && (_UCE = U.Json.select(US.friend.group, { "GroupManageID": UDE.MessageContent })[0])) && (U.MD.F.W.viewFriend(_UCE));
|
|
|
+ case "3": (US.userInfo.userid && (_UCE = U.Json.select(US.friend.group, { "GroupManageID": UDE.MessageContent })[0])) && (U.MD.F.W.viewFriend(_UCE));
|
|
|
break; //给拉入群消息
|
|
|
|
|
|
|
|
@@ -2062,23 +2062,23 @@ U.MD.DK.RE.shear = function (UDE, TF) {
|
|
|
U.alert("不允许添加到选择目录");
|
|
|
} //添加
|
|
|
else if (_UTF[0]) {//目录允许粘贴
|
|
|
- if (_fileinfo.length && (((_dirid = _UKE.UserDirectoryID) == US.FTPFOLDERID || _UKE.GroupID != null) || ((_dirid == _USID || _dirid == US.PRIVATEFOLDERID) && US.userInfo.UserId == userid)) || !UDID) { //相同目录类型的 获取添加到共享 我的私密
|
|
|
+ if (_fileinfo.length && (((_dirid = _UKE.UserDirectoryID) == US.FTPFOLDERID || _UKE.GroupID != null) || ((_dirid == _USID || _dirid == US.PRIVATEFOLDERID) && US.userInfo.userid == userid)) || !UDID) { //相同目录类型的 获取添加到共享 我的私密
|
|
|
_UGID = U.MD.DK.RE.WPHQID(_UTF[2][0], _diskinfo); _UCE = U.MD.DK.C.MLWJSY(_fileinfo);
|
|
|
if (_UTP == "Cut" || _diskinfo[1][0].FileSize + _UCE[1] <= U.UF.UP.maxUnitToByte(_diskinfo[1][0].UserDiskSpace + "M")) {
|
|
|
if (!UDID) {
|
|
|
U.alert("自动整理分配粘贴文件");
|
|
|
_UTP = _UTP == "Cut";
|
|
|
- U.A.Request(US.AUTH, ["CopyOrCutAndPasteFiles", US.userInfo.UserId, U.Json.toKeyArray(_fileinfo, "UserDirectoryID").join(","), _UTP, UDID]), U.MD.DK.RE.AsynTSStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
|
|
|
+ U.A.Request(US.AUTH, ["CopyOrCutAndPasteFiles", US.userInfo.userid, U.Json.toKeyArray(_fileinfo, "UserDirectoryID").join(","), _UTP, UDID]), U.MD.DK.RE.AsynTSStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
|
|
|
} //所有文件需要分配目录
|
|
|
else {
|
|
|
if (_UTP == "Cut") {
|
|
|
- U.A.Request(US.AUTH, ["CutAndPasteFiles", US.userInfo.UserId, UDID, U.Json.toKeyArray(_fileinfo, "UserDirectoryID").join(","), _UGID, (_fileinfo[0].GroupID || "")]), U.MD.DK.RE.AsynUFStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
|
|
|
+ U.A.Request(US.AUTH, ["CutAndPasteFiles", US.userInfo.userid, UDID, U.Json.toKeyArray(_fileinfo, "UserDirectoryID").join(","), _UGID, (_fileinfo[0].GroupID || "")]), U.MD.DK.RE.AsynUFStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
|
|
|
}
|
|
|
else {
|
|
|
- U.A.Request(US.AUTH, ["CopyAndPasteFiles", US.userInfo.UserId, UDID, U.Json.toKeyArray(_fileinfo, "UserDirectoryID").join(","), _UGID, (_UCE[2].length ? _UME.UEI[0][0].UserDirectoryDeep : "")]), U.MD.DK.RE.AsynUFStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
|
|
|
+ U.A.Request(US.AUTH, ["CopyAndPasteFiles", US.userInfo.userid, UDID, U.Json.toKeyArray(_fileinfo, "UserDirectoryID").join(","), _UGID, (_UCE[2].length ? _UME.UEI[0][0].UserDirectoryDeep : "")]), U.MD.DK.RE.AsynUFStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
|
|
|
}
|
|
|
|
|
|
- // U.A.Request(US.AUTH,"UseStudioDisk." + _UTP + (_UTP == "Cut" ? "File" : (_UCE[2].length ? "Folder" : "File")), [US.userInfo.UserId, UDID, U.Json.toKeyArray(_fileinfo,"UserDirectoryID").join(","), _UGID, _UTP == "Cut" ? (_fileinfo[0].GroupID || "") : (_UCE[2].length ? _UME.UEI[0][0].UserDirectoryDeep : "")]), U.MD.DK.RE.AsynUFStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
|
|
|
+ // U.A.Request(US.AUTH,"UseStudioDisk." + _UTP + (_UTP == "Cut" ? "File" : (_UCE[2].length ? "Folder" : "File")), [US.userInfo.userid, UDID, U.Json.toKeyArray(_fileinfo,"UserDirectoryID").join(","), _UGID, _UTP == "Cut" ? (_fileinfo[0].GroupID || "") : (_UCE[2].length ? _UME.UEI[0][0].UserDirectoryDeep : "")]), U.MD.DK.RE.AsynUFStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
|
|
|
} //普通目录粘贴
|
|
|
}
|
|
|
else {
|
|
@@ -2285,10 +2285,10 @@ U.MD.DK.RE.AF = function (UTF, fun, UAF, userid, UFT) {
|
|
|
_UOID = _fileinfo[_fileinfo.length - 1].UserDirectoryID;
|
|
|
_fileinfo = U.MD.DK.M.RUS(new U.MD.DK.M.entity(Guid.newGuid(), 0, _UPID, fun.addEllipsis(20), fun, UTF, null, U.UF.D.toTimeStamp(new Date()), "", _USC, null, _UOID == US.PRIVATEFOLDERID ? "true" : "", _ULX, "", (_UOID == US.FTPFOLDERID ? userid : (_UGID || "")), null, userid)); //生成文件实体
|
|
|
if (_fileinfo.filetype == "1") {
|
|
|
- U.A.Request(US.AUTH, ["CreateFile", US.userInfo.UserId, _fileinfo["UserDirectoryID"], _fileinfo["UserDirectoryParentID"], fun.escapeQuotes() + (UTF == "txt" ? ".txt" : ""), _fileinfo["UserFilesServerName"] || "", "", "", UTF, _UGID]), U.MD.DK.RE.AsynAF, ["", _fileinfo, UAF, _diskinfo, U.MD.D.H.ET["Disk"]["SY"]["DJ"], userid, UTF, UFT]; //创建文件或者文件夹异步
|
|
|
+ U.A.Request(US.AUTH, ["CreateFile", US.userInfo.userid, _fileinfo["UserDirectoryID"], _fileinfo["UserDirectoryParentID"], fun.escapeQuotes() + (UTF == "txt" ? ".txt" : ""), _fileinfo["UserFilesServerName"] || "", "", "", UTF, _UGID]), U.MD.DK.RE.AsynAF, ["", _fileinfo, UAF, _diskinfo, U.MD.D.H.ET["Disk"]["SY"]["DJ"], userid, UTF, UFT]; //创建文件或者文件夹异步
|
|
|
}
|
|
|
else {
|
|
|
- U.A.Request(US.AUTH, ["CreateDirectory", US.userInfo.UserId, _fileinfo["UserDirectoryID"], _USC, fun.escapeQuotes(), _fileinfo["UserDirectoryParentID"], _UGID, _fileinfo.filetype == "1" ? (_fileinfo["UserDirectoryEncrypt"] || _UGID) : _fileinfo["UserDirectoryEncrypt"]]), U.MD.DK.RE.AsynAF, ["", _fileinfo, UAF, _diskinfo, U.MD.D.H.ET["Disk"]["SY"]["DJ"], userid, UTF, UFT]; //创建文件或者文件夹异步
|
|
|
+ U.A.Request(US.AUTH, ["CreateDirectory", US.userInfo.userid, _fileinfo["UserDirectoryID"], _USC, fun.escapeQuotes(), _fileinfo["UserDirectoryParentID"], _UGID, _fileinfo.filetype == "1" ? (_fileinfo["UserDirectoryEncrypt"] || _UGID) : _fileinfo["UserDirectoryEncrypt"]]), U.MD.DK.RE.AsynAF, ["", _fileinfo, UAF, _diskinfo, U.MD.D.H.ET["Disk"]["SY"]["DJ"], userid, UTF, UFT]; //创建文件或者文件夹异步
|
|
|
}
|
|
|
return _fileinfo;
|
|
|
}
|
|
@@ -2309,9 +2309,9 @@ U.MD.DK.RE.AsynAF = function (r) {
|
|
|
_dirid = _diskinfo[1][1];
|
|
|
r = r.value;
|
|
|
if (r != null) {
|
|
|
- if (_diskinfo[2] || _diskinfo[1][2] != US.userInfo.UserId) {
|
|
|
+ if (_diskinfo[2] || _diskinfo[1][2] != US.userInfo.userid) {
|
|
|
|
|
|
- _fileinfo.UserId = US.userInfo.UserId;
|
|
|
+ _fileinfo.UserId = US.userInfo.userid;
|
|
|
_fileinfo.UserNickName = US.userInfo.UserNickName;
|
|
|
_fileinfo.UserName = US.userInfo.UserName;
|
|
|
_fileinfo.UserThumbnailImageHead = US.userInfo.UserThumbnailImageHead;
|
|
@@ -2729,7 +2729,7 @@ U.MD.DK.RE.AsynWPXJWJ = function (UDOD, userid, UDE) {
|
|
|
|
|
|
_formel = _form.form; //返回word的整个窗体。
|
|
|
|
|
|
- // U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "GetDnsInfoByFidUid", US.userInfo.UserId, fileinfo.UserDirectoryID], function (r) {
|
|
|
+ // U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "GetDnsInfoByFidUid", US.userInfo.userid, fileinfo.UserDirectoryID], function (r) {
|
|
|
U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "GetDnsInfoByFileId", fileinfo.UserDirectoryID], function (r) {
|
|
|
fileinfo.DnsInfo = r.value[0];
|
|
|
U.MD.DS.DnsInfo[fileinfo.UserDirectoryID] = fileinfo;
|
|
@@ -2978,7 +2978,7 @@ U.MD.O.AsynWordO = function (r) {
|
|
|
// U.MD.D.Txt.TxtClose = function (UDE, userid, UDID, UDOD) {
|
|
|
// UDOD = U.selectEl(UDOD);
|
|
|
// var _UCB,
|
|
|
-// _userid = US.userInfo.UserId,
|
|
|
+// _userid = US.userInfo.userid,
|
|
|
// _UDTD = UDOD.find("textarea")[0],
|
|
|
// _UDID = UDOD.find("input")[0],
|
|
|
// _UFN = _UDID.value,
|
|
@@ -2987,7 +2987,7 @@ U.MD.O.AsynWordO = function (r) {
|
|
|
// _UDN = UDE.UserallDirectoryName.replace("." + UDE.UserDirectoryExtendType, "");
|
|
|
// if (_userid && (!UDE || _userid == UDE.UserId)) {
|
|
|
// if (UDE && UDE.UserDirectoryID && _UDN != _UFN && U.UF.S.ZWFileName.test(_UFN)) {
|
|
|
-// U.MD.DK.RE.MFN(UDE, _UFN, null, US.userInfo.UserId);
|
|
|
+// U.MD.DK.RE.MFN(UDE, _UFN, null, US.userInfo.userid);
|
|
|
// } //保存文件同时修改文件名
|
|
|
// else if ((_UFN != _UDID.defaultValue || _UTH != _UDTD.defaultValue) && (_UFN != _UDN || _UTH != UDE.UsOffice)) { //内容更变处理
|
|
|
// if (_UTF) {
|
|
@@ -3067,7 +3067,7 @@ U.MD.O.AsynWordO = function (r) {
|
|
|
// _UDID = _el.find("input")[0],
|
|
|
// _UHT = _UDTD.value,
|
|
|
// _UIN = _UDID.value,
|
|
|
-// _userid = US.userInfo.UserId;
|
|
|
+// _userid = US.userInfo.userid;
|
|
|
// if (!U.MD.U.L.isLogin() && (_UTF || UDE.UserId == _userid)) { //登录保存使用
|
|
|
// if (!U.UF.S.ZWFileName.test(_UIN) && _UDID.defaultValue != _UIN) {
|
|
|
// U.alert("文件名不符合");
|
|
@@ -3437,7 +3437,7 @@ U.UF.EC.MD5 = function (str) {
|
|
|
*/
|
|
|
U.MD.DK.VW.fileSwitchForm = function (UDID, UTF, UDE, UP) {
|
|
|
var _UXY = U.UF.EL.getMousePosition(),
|
|
|
- _UGE = U.MD.DK.M.diskOperatingSwitch(US.userInfo.UserId),
|
|
|
+ _UGE = U.MD.DK.M.diskOperatingSwitch(US.userInfo.userid),
|
|
|
_UME = U.selectEl("body").getElementInfo(),
|
|
|
_el = $$("div", { "className": "U_MD_O_E_ZOCC" }),
|
|
|
_UDTD = $$("div", { "className": "U_MD_O_E_ZOCCL", "style": { "border": "0"} }, _el),
|
|
@@ -3488,7 +3488,7 @@ U.MD.DK.VW.fileSwitchForm = function (UDID, UTF, UDE, UP) {
|
|
|
//弹出网盘选择框
|
|
|
U.MD.DK.VW.CCWPXZK = function (UDID, UDE, UTP, UFID, cb) {
|
|
|
if (!U.MD.U.L.isLogin()) {
|
|
|
- if (U.MD.DK.M.diskOperatingSwitch(US.userInfo.UserId)) {
|
|
|
+ if (U.MD.DK.M.diskOperatingSwitch(US.userInfo.userid)) {
|
|
|
var _UDSD, _UDTD = $$("div", {});
|
|
|
$$("div", {
|
|
|
innerHTML: "◀",
|
|
@@ -3541,7 +3541,7 @@ U.MD.DK.VW.ZBPWPTP = function (UDID, UDOD, UDE, UTP) {
|
|
|
|
|
|
//打印网盘图片准备
|
|
|
U.MD.DK.VW.PWPTP = function (UDID, UDOD, UDE, UTP) {
|
|
|
- var _userid = US.userInfo.UserId;
|
|
|
+ var _userid = US.userInfo.userid;
|
|
|
UDOD.innerText = "";
|
|
|
|
|
|
U.MD.DK.LE.getChildsByDirectoryId(_userid, _diskinfo[4][UDID], [UDOD, true], function () { U.MD.DK.VW.PCKBDBL(UDID, UDOD, UDE, UTP); });
|
|
@@ -3570,7 +3570,7 @@ U.MD.DK.VW.AsynAPWPTP = function (r) {
|
|
|
U.MD.DK.VW.PCKBDBL = function (UDE, UDOD, UCE, UTP, UFID) {
|
|
|
var i, _UDID, _UDTD, _UDSD, _UDND, _UTM, _UAE, _UTF, _UTP, _UNE,
|
|
|
_UDFD = $$("div", { className: "U_MD_HomeSXZLRSITN" }),
|
|
|
- _UGE = U.MD.DK.M.diskOperatingSwitch(US.userInfo.UserId); //获取用户的云盘资料
|
|
|
+ _UGE = U.MD.DK.M.diskOperatingSwitch(US.userInfo.userid); //获取用户的云盘资料
|
|
|
//获取目录id
|
|
|
if (U.UF.C.isString(UDE)) {
|
|
|
_UDID = UDE;
|
|
@@ -4469,7 +4469,7 @@ cb 回调函数
|
|
|
*/
|
|
|
//U.MD.O.W.BCWJ = function () {
|
|
|
// var _wordinfo = U.MD.O.W, //word对象处理
|
|
|
-// _uid = US.userInfo.UserId, //用户id
|
|
|
+// _uid = US.userInfo.userid, //用户id
|
|
|
// _fileinfo = _wordinfo["fileinfo"], //文件信息
|
|
|
// _contentdiv = $$("div", { "innerHTML": _fileinfo.UsOffice }), //默认的文档内容
|
|
|
// _editor = U.selectEl("#U_MD_O_W_E_body")[0]; //编辑div
|
|
@@ -4489,7 +4489,7 @@ cb 回调函数
|
|
|
// U.MD.O.W.fileinfo = _fileinfo; //设置word文件信息实体
|
|
|
// U.MD.O.W.parentid = _fileinfo.UserDirectoryParentID; //设置目录id
|
|
|
// U.MD.O.W.id = _fileinfo.UserDirectoryID; //设置文件的id
|
|
|
-// U.MD.O.W.userid = _fileinfo.UserId || top.US.userInfo.UserId; //设置所属人信息
|
|
|
+// U.MD.O.W.userid = _fileinfo.UserId || top.US.userInfo.userid; //设置所属人信息
|
|
|
// if (U.UF.C.isFunction(cb)) { cb(_fileinfo); } //回调函数
|
|
|
//}
|
|
|
|
|
@@ -4512,12 +4512,12 @@ cb 回调函数
|
|
|
|
|
|
// if (_fileinfo) { //判断是否有文件信息
|
|
|
|
|
|
-// _isuser = _fileinfo.UserId == US.userInfo.UserId; //判断是否是本人
|
|
|
-// _isgroup = _fileinfo.UserDirectoryEncrypt && U.Json.select(US.friend.groupusers, { "GroupManageID": _fileinfo.UserDirectoryEncrypt, "UserId": US.userInfo.UserId })[0]; //判断是否为群成员备份
|
|
|
+// _isuser = _fileinfo.UserId == US.userInfo.userid; //判断是否是本人
|
|
|
+// _isgroup = _fileinfo.UserDirectoryEncrypt && U.Json.select(US.friend.groupusers, { "GroupManageID": _fileinfo.UserDirectoryEncrypt, "UserId": US.userInfo.userid })[0]; //判断是否为群成员备份
|
|
|
|
|
|
// if (_isuser || _isgroup) { //判断备份的文件是否为用户自己的文件
|
|
|
|
|
|
-// U.MD.DK.M.diskOperatingSwitch(US.userInfo.UserId); //操作用户切换会当前登录用户
|
|
|
+// U.MD.DK.M.diskOperatingSwitch(US.userInfo.userid); //操作用户切换会当前登录用户
|
|
|
|
|
|
// //弹出查看备份选择
|
|
|
// U.MD.DK.VW.CCWPXZK(UDE.UserDirectoryParentID, {
|
|
@@ -4662,7 +4662,7 @@ cb 回调函数
|
|
|
// //获取编辑区域的内容
|
|
|
// _editor = U.selectEl("#U_MD_O_W_E_body")[0],
|
|
|
// _html = _editor.innerHTML.escapeQuotes(), //获取编辑区域的html 这里保存的值包含了分页
|
|
|
- // _userdisk = top.U.MD.DK.M.diskOperatingSwitch(US.userInfo.UserId) //获取用户个人网盘的信息 _userdisk.formel 是用户的网盘窗体
|
|
|
+ // _userdisk = top.U.MD.DK.M.diskOperatingSwitch(US.userInfo.userid) //获取用户个人网盘的信息 _userdisk.formel 是用户的网盘窗体
|
|
|
// ;
|
|
|
// //判断用户是否为ftp用户
|
|
|
// if (_uid == _wordinfo["userid"] || (_fileinfo && _fileinfo.GroupID == _uid)) {
|
|
@@ -4672,13 +4672,13 @@ cb 回调函数
|
|
|
// if (_fileinfo) {
|
|
|
// _isgroupuser = U.Json.select(US.friend.groupusers, {
|
|
|
// "GroupManageID": _fileinfo.UserDirectoryEncrypt,
|
|
|
- // "UserId": US.userInfo.UserId
|
|
|
+ // "UserId": US.userInfo.userid
|
|
|
// })[0];
|
|
|
// }
|
|
|
// //判断文件是否是自己或者是ftp的文件或者是群文件
|
|
|
// if (_fileinfo && (_isftp || _isgroupuser)) {
|
|
|
// top.U.MD.DK.LE.USOS(_fileinfo, _html, null, cb); //保存到数据库
|
|
|
- // U.MD.O.W.Panel.InsertOfficeHistory(_fileinfo.UserDirectoryID, US.userInfo.UserId, _html); //插入历史记录
|
|
|
+ // U.MD.O.W.Panel.InsertOfficeHistory(_fileinfo.UserDirectoryID, US.userInfo.userid, _html); //插入历史记录
|
|
|
// }
|
|
|
// //文件不存在 或者文件不属于自己就创建一个新文件保存
|
|
|
// else {
|
|
@@ -5218,7 +5218,7 @@ U.UF.IMG.Create.init.prototype = {
|
|
|
//}, fileinfo.UserId);
|
|
|
// var _needuser = top.U.MD.F.J.selectUserInfo.NeedUser;
|
|
|
// //用户id 群id 文件id 群id 判断
|
|
|
- // U.A.Request(US.AUTH,"UseStudioDisk.CopyAndPasteFiles", [US.userInfo.UserId, groupid.GroupManageID, fileinfo.UserFilesID || fileinfo.UserDirectoryID, groupid.GroupManageID, 1], function (r) {
|
|
|
+ // U.A.Request(US.AUTH,"UseStudioDisk.CopyAndPasteFiles", [US.userInfo.userid, groupid.GroupManageID, fileinfo.UserFilesID || fileinfo.UserDirectoryID, groupid.GroupManageID, 1], function (r) {
|
|
|
|
|
|
// //重新打开
|
|
|
// U.MD.O.word();
|
|
@@ -5235,8 +5235,8 @@ U.UF.IMG.Create.init.prototype = {
|
|
|
else { //如果不是群文件,把当前uw文件复制到群里
|
|
|
|
|
|
|
|
|
- // var _UME = top.U.MD.DK.RE, _UCE = top.U.MD.DK.C.MLWJSY(fileinfo), _UGE = top.U.MD.DK.M.diskOperatingSwitch(US.userInfo.UserId);
|
|
|
- // U.A.Request(US.AUTH,"UseStudioDisk.CopyFile", [US.userInfo.UserId, UGID, fileinfo[1]["UserDirectoryID"], US.userInfo.UserId, (_UCE[2].length ? _UME.UEI[0][0].UserDirectoryDeep : "")]), top.U.MD.DK.RE.AsynUFStick, ["", UGID, [fileinfo[1]], _UCE[1], null, _UGE[1][2], UGID, "Copy", UGID];
|
|
|
+ // var _UME = top.U.MD.DK.RE, _UCE = top.U.MD.DK.C.MLWJSY(fileinfo), _UGE = top.U.MD.DK.M.diskOperatingSwitch(US.userInfo.userid);
|
|
|
+ // U.A.Request(US.AUTH,"UseStudioDisk.CopyFile", [US.userInfo.userid, UGID, fileinfo[1]["UserDirectoryID"], US.userInfo.userid, (_UCE[2].length ? _UME.UEI[0][0].UserDirectoryDeep : "")]), top.U.MD.DK.RE.AsynUFStick, ["", UGID, [fileinfo[1]], _UCE[1], null, _UGE[1][2], UGID, "Copy", UGID];
|
|
|
}
|
|
|
*/
|
|
|
|
|
@@ -5438,7 +5438,7 @@ U.UF.UI.EditorLoad.init.prototype = {
|
|
|
}, _UDTD);
|
|
|
|
|
|
_UDUD = $$("div", { "className": "U_MD_F_DTZ U_Img U_MD_HomeSXZBFCAHO", "style": { "position": "relative" }, "title": "本地添加文件" }, _UDSD);
|
|
|
- if (US && US.userInfo && US.userInfo.UserId) {
|
|
|
+ if (US && US.userInfo && US.userInfo.userid) {
|
|
|
$$("div",
|
|
|
{
|
|
|
"className": "U_MD_F_DTW U_Img U_MD_HomeSXZBFCAHH",
|
|
@@ -5825,7 +5825,7 @@ U.UF.UI.EditorLoad.init.prototype = {
|
|
|
this.ufcp(r, _UFID);
|
|
|
}
|
|
|
else if ((!this.rt.fup) || (this.rt.fup(_UDE) !== false)) {
|
|
|
- this.objfl.upload((this.url || "http://main.1473.cn/USUpfile.ashx?typename=UseStudioEditor&") + "UserId=" + (US.userInfo.UserId || US.EMPTYGUID) + "&IsF=true", _UFID, _UDE[1], _UDE[2]);
|
|
|
+ this.objfl.upload((this.url || "http://main.1473.cn/USUpfile.ashx?typename=UseStudioEditor&") + "UserId=" + (US.userInfo.userid || US.EMPTYGUID) + "&IsF=true", _UFID, _UDE[1], _UDE[2]);
|
|
|
}
|
|
|
},
|
|
|
_ = function (UWE, UFID) {
|
|
@@ -6065,7 +6065,7 @@ U.UF.UI.EditorLoad.init.prototype = {
|
|
|
|
|
|
|
|
|
// var i, j, _ULE, _UTF, _UPE, _UCE, _UKE, _UME, _UNE, _friendform,
|
|
|
- // _userid = US.userInfo.UserId;
|
|
|
+ // _userid = US.userInfo.userid;
|
|
|
// if ((news = news[3])) {
|
|
|
// for (i = 0; i < news.length; i++) {
|
|
|
// _UCE = news[i];
|
|
@@ -6083,7 +6083,7 @@ U.UF.UI.EditorLoad.init.prototype = {
|
|
|
// U.MD.D.Blog.N.PNXX(); //打印学习系统和blog消息
|
|
|
// break;
|
|
|
// case "UD_DiskCon": case "DDisk": //Disk添加删除文件
|
|
|
- // _UKE = U.MD.DK.M.diskOperatingSwitch(US.userInfo.UserId);
|
|
|
+ // _UKE = U.MD.DK.M.diskOperatingSwitch(US.userInfo.userid);
|
|
|
// _UPE = [];
|
|
|
// _ULE = _UKE[4][_UKE[1][1]].Child.length;
|
|
|
// if (_UKE) {
|
|
@@ -6105,7 +6105,7 @@ U.UF.UI.EditorLoad.init.prototype = {
|
|
|
// _UTF = U.Json.del(_UKE[0], { "UserDirectoryID": _UNE[j] })[0];
|
|
|
// if (_UTF) { _UPE.push(_UTF) };
|
|
|
// } //删除文件
|
|
|
- // if (_userid == _UKE[1][2] && _UPE[0].UserDirectoryParentID == _UKE[1][1]) { U.MD.DK.RE.delPageFileOrDir(_UPE, US.userInfo.UserId) }; //删除文件提示
|
|
|
+ // if (_userid == _UKE[1][2] && _UPE[0].UserDirectoryParentID == _UKE[1][1]) { U.MD.DK.RE.delPageFileOrDir(_UPE, US.userInfo.userid) }; //删除文件提示
|
|
|
// }
|
|
|
// }
|
|
|
// break; //Disk更新目录
|
|
@@ -6281,7 +6281,7 @@ U.MD.F.N.XXHFXT = function (news) {
|
|
|
// U.MD.F.N.pulledIntoGroups(news);
|
|
|
// }
|
|
|
// else { //删除群消息
|
|
|
-// U.A.Request(US.CD, [US.DB, "UseStudio_Friends", "DeleteMessageById", US.userInfo.UserId, news.MessageID], function () { }, [""]);
|
|
|
+// U.A.Request(US.CD, [US.DB, "UseStudio_Friends", "DeleteMessageById", US.userInfo.userid, news.MessageID], function () { }, [""]);
|
|
|
// }
|
|
|
//}
|
|
|
|