mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
update AI engines
This commit is contained in:
parent
9d005633c8
commit
e4da0e72b8
11 changed files with 26 additions and 26 deletions
|
@ -531,13 +531,13 @@ You should have received a copy of the GNU General Public License along with thi
|
|||
function internalLink(url){
|
||||
let cmd = url.charCodeAt(2);
|
||||
let subcmd = url.charCodeAt(3);
|
||||
let iColon = url.indexOf(':',2);
|
||||
switch(cmd){
|
||||
case 48://'0' i:0
|
||||
switch(subcmd){
|
||||
case 47://'/' i:0/
|
||||
if(106===url.charCodeAt(4) && 115===url.charCodeAt(5) && 47===url.charCodeAt(6)){
|
||||
//i:0/js/xx:[url]
|
||||
let iColon = url.indexOf(':',7);
|
||||
let fname = url.slice(4,iColon);
|
||||
let pname = path.join(__dirname,fname);
|
||||
if(fs.existsSync(pname)){
|
||||
|
@ -551,7 +551,9 @@ You should have received a copy of the GNU General Public License along with thi
|
|||
})();
|
||||
}
|
||||
}
|
||||
return;
|
||||
case 48: //i:00
|
||||
{
|
||||
let iColon = url.indexOf(':',5);
|
||||
let endS;
|
||||
let is = url.indexOf('%s',iColon+1);
|
||||
|
@ -563,6 +565,8 @@ You should have received a copy of the GNU General Public License along with thi
|
|||
let str = '"'+url.slice(4,iColon)+'":"'+url.substring(iColon+1)+
|
||||
endS;
|
||||
jsonAppend(pname,125,str);
|
||||
}
|
||||
return;
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"b":"https://www.bing.com/search?q=%s",
|
||||
"bdic":"http://cn.bing.com/dict/search?q=%s",
|
||||
"ms":"https://metaso.cn?q=%s",
|
||||
"gc":"https://gitcode.com/aisearch?q=%s",
|
||||
"ta":"https://thinkany.so/search?q=%s",
|
||||
"ks":"https://kaisouai.com?q=%s",
|
||||
"exa":"https://exa.ai/search?c=all&q=%s",
|
||||
|
@ -20,7 +19,6 @@
|
|||
"360":"https://so.360.com/s?q=%s",
|
||||
"tg":"https://www.tiangong.cn/result?q=%s",
|
||||
"cg":"i:0/js/s2ta.js:https://chatglm.cn/main/detail?%s",
|
||||
"s100":"i:0/js/s2input.js:https://www.sou100.com/?%s",
|
||||
"csdn":"i:0/js/s2ta.js:https://chat.csdn.net?%s",
|
||||
"bdc":"i:0/js/s2editable.js:https://chat.baidu.com/?%s",
|
||||
"miku":"i:0/js/s2ta.js:https://www.hellomiku.com?%s",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue