feat: 后端全量更新 - 含所有本次需求

- Contract.php: 返回合约账户余额(balance_contract)
- My.php: 地址管理增加BTC/ETH
- AppContract.php: 一键平仓(closeall)
- AppProxy.php: 代理专属注册链接 + 分级权限(L1/L2)
- site.php: 手续费减半(0.018→0.009)
- agent_permission_setup.sql: 代理权限SQL
- crypto_news_crawler.py: 新闻自动采集脚本
This commit is contained in:
li
2026-03-30 20:16:32 +08:00
commit 1b24994e74
6721 changed files with 1308571 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
class officeLivePlugin extends PluginBase{
function __construct(){
parent::__construct();
}
public function regiest(){
$this->hookRegiest(array(
'user.commonJs.insert' => 'officeLivePlugin.echoJs'
));
}
public function echoJs($st,$act){
if($this->isFileExtence($st,$act)){
$this->echoFile('static/main.js');
}
}
public function index(){
if(substr($this->in['path'],0,4) == 'http'){
$path = $fileUrl = $this->in['path'];
}else{
$path = _DIR($this->in['path']);
$fileUrl = _make_file_proxy($path);
if (!file_exists($path)) {
show_tips(LNG('not_exists'));
}
}
$config = $this->getConfig();
header('Location:'.$config['apiServer'].rawurlencode($fileUrl));
}
}
@@ -0,0 +1,15 @@
<?php
return array(
"officeLive.meta.name" => "Officelive Viewer",
"officeLive.meta.title" => "Officelive Viewer",
"officeLive.meta.desc" => "Officelive Viewer",
"officeLive.Config.apiServer" => "Server Api",
"officeLive.Config.apiServerDesc" => "<div class='can-select pt-10'>
The address of the preview server must be accessible by the server where the server can access kods can use third party services, or Microsoft's official interface <br/> (Kod server must be in the external network, and the need for domain name access)
<div class = 'grayy 8'> https://owa-box.vips100.com/op/view.aspx?src= </div>
<div class = 'grayy 8'> https://docview.mingdao.com/op/view.aspx?src= </div>
<div class = 'grayy 8'> https://preview.tita.com/op/view.aspx?src= </div>
<div class = 'grayy 8'> https://view.officeapps.live.com/op/view.aspx?src= </div>
Users can build their own; <a href='https://kodcloud.com/help/show-5.html' target='_blank'> learn more </a></div>"
);
@@ -0,0 +1,15 @@
<?php
return array(
"officeLive.meta.name" => "Officelive预览",
"officeLive.meta.title" => "Officelive预览",
"officeLive.meta.desc" => "office系列文件在线预览",
"officeLive.Config.apiServer" => "服务器接口",
"officeLive.Config.apiServerDesc" => "<div class='can-select pt-10'>
预览服务器的地址,必须要office所在服务器能访问到kod<br/>可以使用第三方的服务,或微软官方的接口<br/>(kod服务器必须要在外网,且需要域名访问)<br/><br/>
<div class='grey-8'>https://owa-box.vips100.com/op/view.aspx?src=</div>
<div class='grey-8'>https://docview.mingdao.com/op/view.aspx?src=</div>
<div class='grey-8'>https://preview.tita.com/op/view.aspx?src=</div>
<div class='grey-8'>https://view.officeapps.live.com/op/view.aspx?src=</div><br/>
内网的用户,可以自己搭建;<a href='https://kodcloud.com/help/show-5.html' target='_blank'>了解详情</a></div>"
);
@@ -0,0 +1,69 @@
{
"id":"officeLive",
"name":"{{LNG.officeLive.meta.name}}",
"title":"{{LNG.officeLive.meta.title}}",
"version":"1.23",
"category":"file",
"source":{
"icon":"{{pluginHost}}static/images/icon.png"
},
"description":"{{LNG.officeLive.meta.desc}}",
"auther":{
"copyright":"kodcloud",
"homePage":"http://kodcloud.com"
},
"configItem":{
"formStyle":{
"className":"form-box-title-left",
"tabs":[
{
"name":"{{LNG.Plugin.tab.basic}}",
"field":["pluginAuth","pluginAuthOpen","sep001","openWith","apiServer"]
}
]
},
"pluginAuth":{
"type":"userSelect",
"value":"all:1",
"display":"{{LNG.Plugin.config.auth}}",
"desc":"{{LNG.Plugin.config.authDesc}}",
"require":1
},
"pluginAuthOpen":{
"type":"switch",
"value":0,
"display":"{{LNG.Plugin.config.authOpen}}",
"desc":"{{LNG.Plugin.config.authOpenDesc}}",
"require":1
},
"sep001":"<hr/>",
"openWith":{
"type":"radio",
"value":"dialog",
"display":"{{LNG.Plugin.Config.openWith}}",
"info":[
["dialog","{{LNG.Plugin.Config.openWithDilog}}"],
["window","{{LNG.Plugin.Config.openWithWindow}}"]
]
},
"apiServer":{
"type":"input",
"value":"https://view.officeapps.live.com/op/view.aspx?src=",
"display":"{{LNG.officeLive.Config.apiServer}}",
"desc":"{{LNG.officeLive.Config.apiServerDesc}}",
"require":1
},
"fileExt":{
"type":"tags",
"display":"{{LNG.Plugin.Config.fileExt}}",
"desc":"{{LNG.Plugin.Config.fileExtDesc}}",
"value":"doc,docx,docm,dot,dotx,dotm,rtf,xls,xlsx,xlt,xlsb,xlsm,csv,ppt,pptx,pps,ppsx,pptm,potm,ppam,potx,ppsm,odt,ods,odp,ott,ots,otp,wps,wpt",
},
"fileSort":{
"type":"number",
"display":"{{LNG.Plugin.Config.fileSort}}",
"desc":"{{LNG.Plugin.Config.fileSortDesc}}",
"value":55,
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

@@ -0,0 +1,17 @@
kodReady.push(function(){
kodApp.add({
name:"officeLive",
title:"{{LNG.officeLive.meta.name}}",
icon:'{{pluginHost}}static/images/icon.png',
ext:"{{config.fileExt}}",
sort:"{{config.fileSort}}",
callback:function(path,ext){
var url = '{{pluginApi}}&path='+core.pathCommon(path);
if('window' == "{{config.openWith}}" && !core.isFileView() ){
window.open(url);
}else{
core.openDialog(url,core.icon(ext),htmlEncode(core.pathThis(path)));
}
}
});
});