no message
This commit is contained in:
parent
ee83f61a7d
commit
d61ac129dc
30
app/Services/Tg/Hook/Mod/HttpQueue.php
Normal file
30
app/Services/Tg/Hook/Mod/HttpQueue.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Tg\Hook\Mod;
|
||||
|
||||
use App\Services\Tg\Hook\Dog;
|
||||
use App\Models\HttpQueue as ModelHttpQueue;
|
||||
|
||||
class HttpQueue extends Base {
|
||||
|
||||
private $oDog;
|
||||
// private $aUpdate;
|
||||
|
||||
public function __construct($aUpdate)
|
||||
{
|
||||
$this->oDog = new Dog(new ModelHttpQueue());
|
||||
$this->oDog->_setDogName("HttpQueue");
|
||||
// $this->oDog->_setPrimaryKey("code"); // 可选,默认id
|
||||
// $this->oDog->_setJsonField(["config"]);
|
||||
// $this->oDog->_setStrField(["content"]);
|
||||
// $this->aUpdate = $aUpdate;
|
||||
}
|
||||
|
||||
public function __call($sName, $aArg)
|
||||
{
|
||||
return $this->oDog->$sName($aArg[0]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
51
fn部署.md
Normal file
51
fn部署.md
Normal file
@ -0,0 +1,51 @@
|
||||
master的option里加freenode_client
|
||||
freenode_client-fn_a和freenode_client都要有
|
||||
|
||||
master的site_map里加config字段,加api_path字段
|
||||
|
||||
master加crawl_freenode表,加freenode_pool表
|
||||
|
||||
master的fn文件夹里加template
|
||||
|
||||
cfn的option里嫁freenode_client
|
||||
|
||||
cnf加http_queue表 - 不用
|
||||
|
||||
cfn的env里加url_master_base
|
||||
|
||||
cfn的public里加sub文件夹
|
||||
|
||||
ALTER TABLE `site_map`
|
||||
ADD COLUMN `config` LONGTEXT
|
||||
CHARACTER SET utf8mb4
|
||||
COLLATE utf8mb4_bin
|
||||
DEFAULT NULL
|
||||
CHECK (json_valid(`config`)),
|
||||
ADD COLUMN `api_path` LONGTEXT
|
||||
CHARACTER SET utf8mb4
|
||||
COLLATE utf8mb4_bin
|
||||
DEFAULT NULL
|
||||
CHECK (json_valid(`api_path`));
|
||||
|
||||
CREATE TABLE `crawl_freenode` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(120) DEFAULT NULL,
|
||||
`group` varchar(50) DEFAULT NULL,
|
||||
`url_base` varchar(255) DEFAULT NULL,
|
||||
`url_node` varchar(255) DEFAULT NULL,
|
||||
`url_file` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`url_file`)),
|
||||
`file_real` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`file_real`)),
|
||||
`status` tinyint(1) DEFAULT 1,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
|
||||
CREATE TABLE `freenode_pool` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`date` date DEFAULT NULL,
|
||||
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`content`)),
|
||||
`content_custom` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`content_custom`)),
|
||||
`content_v2ray` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`content_v2ray`)),
|
||||
`content_clash` longtext DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `date` (`date`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
Loading…
Reference in New Issue
Block a user