这个提交包含在:
2021-07-21 16:32:00 +08:00
父节点 82db6df158
当前提交 b8b02257ae
共有 106 个文件被更改,包括 5680 次插入 和 5678 次删除

查看文件

@ -1,23 +1,23 @@
const Core = require("./Core");
exports.add = {
Interfaces:{
MakeURL:function(docs){
const btoa = require("btoa");
var e = {"TITLE":"本文档生成自OnlineAI Core","Context":[{"Text":docs}]};
var s = JSON.stringify(e);
var n = encodeURIComponent(s);
var k = btoa(n);
return `https://computer_internet_inc.gitee.io/jsondoc/?${k}`;
},
GetShortURL:function(LongURL){
}
},
Control:function(connect,info){
if(info["message"].substr(0,4)=="生成文档"){
var msg = info["message"].replace("生成文档","");
var url = exports.add.Interfaces.MakeURL(msg);
Core.frame.SendMsg(connect,info,`${url}`);
}
}
const Core = require("./Core");
exports.add = {
Interfaces:{
MakeURL:function(docs){
const btoa = require("btoa");
var e = {"TITLE":"本文档生成自OnlineAI Core","Context":[{"Text":docs}]};
var s = JSON.stringify(e);
var n = encodeURIComponent(s);
var k = btoa(n);
return `https://computer_internet_inc.gitee.io/jsondoc/?${k}`;
},
GetShortURL:function(LongURL){
}
},
Control:function(connect,info){
if(info["message"].substr(0,4)=="生成文档"){
var msg = info["message"].replace("生成文档","");
var url = exports.add.Interfaces.MakeURL(msg);
Core.frame.SendMsg(connect,info,`${url}`);
}
}
}