加入获取更新功能,测试更新
这个提交包含在:
9
Debug.js
9
Debug.js
@ -56,9 +56,6 @@ exports.add={
|
|||||||
Core.frame.SendMsg(Core.connect,info,n);
|
Core.frame.SendMsg(Core.connect,info,n);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
},
|
|
||||||
UpData:function(){
|
|
||||||
global.UpData();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Control:function(connect,info){
|
Control:function(connect,info){
|
||||||
@ -111,6 +108,12 @@ exports.add={
|
|||||||
}
|
}
|
||||||
Core.frame.SendMsg(connect,info,message);
|
Core.frame.SendMsg(connect,info,message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Temp1=="获取更新"){
|
||||||
|
global.UpData();
|
||||||
|
Debug.log("获取更新成功!");
|
||||||
|
}
|
||||||
|
|
||||||
if(Temp1.substr(0,4)=="执行代码"){
|
if(Temp1.substr(0,4)=="执行代码"){
|
||||||
if(!exports.add.Interfaces.IsAdmin(Core.GetUser(info["user_id"]))){
|
if(!exports.add.Interfaces.IsAdmin(Core.GetUser(info["user_id"]))){
|
||||||
Core.frame.SendMsg(connect,info,"此功能只允许机器人管理员使用。");
|
Core.frame.SendMsg(connect,info,"此功能只允许机器人管理员使用。");
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户