diff --git a/code/123.html b/code/123.html index e34d10d..a96cc61 100644 --- a/code/123.html +++ b/code/123.html @@ -8,46 +8,45 @@ - 御兽:我的御主是位恶役大小姐最新章节_御兽:我的御主是位恶役大小姐白色的竹篱笆丶_御兽:我的御主是位恶役大小姐小说免费全文阅读_630阅读网 - + 张柠檬2最新章节_张柠檬2伯未有_张柠檬2小说免费全文阅读_恋上你中文 + - + content="这仍是一部探索欲望与心理SM现实主义小说,主人公张柠檬以自述的方式讲述了自己的生活。作者试图写出一篇严肃的色情小说,表达一种独特的“异化美感”,希望从冷酷中塑造一种黑暗的诗意。(我也不知道我在说什么)—————————介绍:本文描绘了大量SM场景元素,存在各式各样的拘束,奴役、羞辱和强迫的内容。前作换过很多名字,最早名为《我是如何成为富二代的的玩物的》,又更名为《玩具》、《张柠檬》等还有一些我也忘记的名字,看过就是缘。————————不知道诸位看官究竟喜欢什么内容,故事的内容是无限的,但作者的精力属实是有限的,众所周知本作断更已然是一种常态~_~;所以大伙儿们喜欢什么请一定要告诉我,我好更多的去侧重呀。诸如:A五花八门的调教??B云朝雨暮的性爱C风花雪月的交往D刻骨铭心的爱情如果还有别的也请补充" /> + - - - - - - + href="https://www.630zw.org/shu/531207.html" /> + + + + + - + - - - - - - + content="这仍是一部探索欲望与心理SM现实主义小说,主人公张柠檬以自述的方式讲述了自己的生活。作者试图写出一篇严肃的色情小说,表达一种独特的“异化美感”,希望从冷酷中塑造一种黑暗的诗意。(我也不知道我在说什么)—————————介绍:本文描绘了大量SM场景元素,存在各式各样的拘束,奴役、羞辱和强迫的内容。前作换过很多名字,最早名为《我是如何成为富二代的的玩物的》,又更名为《玩具》、《张柠檬》等还有一些我也忘记的名字,看过就是缘。————————不知道诸位看官究竟喜欢什么内容,故事的内容是无限的,但作者的精力属实是有限的,众所周知本作断更已然是一种常态~_~;所以大伙儿们喜欢什么请一定要告诉我,我好更多的去侧重呀。诸如:A五花八门的调教??B云朝雨暮的性爱C风花雪月的交往D刻骨铭心的爱情如果还有别的也请补充" /> + + + + + + - - - + + +
- + + href="/login.html?url=https%3A%2F%2Fwww.630zw.org%2Fshu%2F531207.html">用户登录
-

630阅读网

+

恋上你中文

@@ -69,249 +68,222 @@
-

630阅读网>御兽:我的御主是位恶役大小姐 -

+

恋上你中文>张柠檬2

-
御兽:我的御主是位恶役大小姐
+
张柠檬2
-

御兽:我的御主是位恶役大小姐

+

张柠檬2

-

作  者:白色的竹篱笆丶

-

类  别:玄幻修真

+

作  者:伯未有

+

类  别:都市小说

状  态:连载中

动  作:加入书架章节目录开始阅读

-

最后更新:2025-03-18 14:49:04

-

最新章节:第262章 你不喜欢最好了

+ href="javascript:addbookcase('https://www.630zw.org/shu/531207.html','531207');">加入书架章节目录开始阅读

+

最后更新:2025-03-19 17:06:56

+

最新章节:二重奏

- 关于御兽:我的御主是位恶役大小姐:恶役大小姐伸出手想要推开面前巨龙的脑袋:“混蛋巨龙,不要再吃了!最后一点也没有了!”这里是御兽的世界,这里是御兽师的世界,每个人将会在十五岁时召唤出属于自己的御兽。觉醒,契约,收服,修炼,进化,异化,战斗……是这片大陆的主旋律,山野,城市,战场,秘境,遗迹都有他们的痕迹,御兽资质:甲乙丙丁四等当异世界传奇生物巨龙融合英雄联盟中科加斯能够无限成长的大招被一位恶役,跋扈,淡漠的大小姐召唤觉醒出丁级资质,期间会发生什么故事。 - 御兽:我的御主是位恶役大小姐
+ 这仍是一部探索欲望与心理SM现实主义小说,主人公张柠檬以自述的方式讲述了自己的生活。作者试图写出一篇严肃的色情小说,表达一种独特的“异化美感”,希望从冷酷中塑造一种黑暗的诗意。(我也不知道我在说什么)—————————介绍:本文描绘了大量SM场景元素,存在各式各样的拘束,奴役、羞辱和强迫的内容。前作换过很多名字,最早名为《我是如何成为富二代的的玩物的》,又更名为《玩具》、《张柠檬》等还有一些我也忘记的名字,看过就是缘。————————不知道诸位看官究竟喜欢什么内容,故事的内容是无限的,但作者的精力属实是有限的,众所周知本作断更已然是一种常态~_~;所以大伙儿们喜欢什么请一定要告诉我,我好更多的去侧重呀。诸如:A五花八门的调教??B云朝雨暮的性爱C风花雪月的交往D刻骨铭心的爱情如果还有别的也请补充 +
-

《御兽:我的御主是位恶役大小姐》第262章 你不喜欢最好了

+

《张柠檬2》二重奏

-

铭城主连连点头,补充说:“不止是位女生,还是个烈女,扬言即便是傲厉殿下在她面前都不敢欺辱她。” 傲慧勾起一个笑容:“有趣。” - 跟在傲慧身后的铭城主打磨他这句话半晌,带着上不了台面的权色交易意味说:“调教一个烈女的感觉一定很舒服。” 皇室嘛~,都是滥交之辈,不然道乾那个皇帝也不会有十几位皇子, - “呵呵,本皇子不喜欢烈女,你要是喜欢的话,还是自己留着吧!” 铭城主愣了片刻,想起刚才地牢的发生,那双眼神太可怕了, 他今天必须把这个女人的翅膀折断,不然就只能想办法借助慧殿下的手,把她斩杀, - 不然想起她的话,自己指定睡不着觉。 打着这样的算盘,他同傲慧皇子进入了铁砧堡的地牢, ...

-

相邻推荐:咒术燃冬???  春潮泛滥  穿越后我成了鱼玄机的老师  四合院:绝世家族  成为耀眼的一颗星星吧  大明:捡到朱雄英,调教成恶霸  重生罪女嫁王爷,渣男全家破大防  戏神:我不是死神  三国之风起扬州  为什么?重生后一切都变啦  美人很风骚  明末崛起:打造一个崭新华夏帝国  见燕台  一米八的柳同学  陶李恋:宫廷异闻录  原神:美露莘的我不想当抱枕  在灾难世界收房租  层层迷雾之都市神探  群星:我的领袖不太对劲  闪婚老伴是富豪  御兽我的主人实在太稳健了  御兽我的御主是位恶役大小姐正版阅读  御兽我的御主是位恶役大小姐  御兽我的御主是位恶役大小姐免费阅读全文最新章节  

+

令我两条胳膊无法从脑后拿开,我被他单臂环着,揉着胸,看着镜子扭来扭去。 我忽然领悟了为什么有人把女人比作蛇,柔软、妖娆,可如果被攥住了七寸,就从要命的野兽,变成扭捏着逞强的肉绳子。 + 我什么也做不了,连他把手从我身上拿下来,我都无法阻止。我无法攥住他的手,无法抱着他,我只能眼睁睁的看着他品尝了我之后,并不留恋的离开。 想要留下一个人,比想要追上一个人还要难。 + 我想让他继续环我的腰,揉我的胸,嗅我身上的气味,我想告诉他:「再尝我一口吧,我会更好吃的。」 悄悄的,在我不知道的时候,我腰上的金属环变松了,他要把这碍事的铁家伙从我身上取下了。 + 贞操带向下退着,我的心脏已为它敲响了欢送的战鼓。 可是,主人没...

+

相邻推荐:斗罗,绝世之神  灭我全族?弃守帝关,化禁区之主  我在斗气大陆与美女双修  七零大厂美人,改造反派崽暴富  凹凸世界之天光破云  可盐可甜美人穿  顶级陪玩  转身芳华依旧  未来通货膨胀,我却赚了几百亿  抄家流放?亲妈金手指已到账  复仇之蓝蝴蝶可以承载灵魂  原神:小鸟要从零基础养起  查理九世:怪谈游戏  空间通末世,我带飞全家很合理吧  我GSD,一剑爆星  我手握无限物资,砸出末世安全区  太古封神  流放?医妃搬空仇人库房做女皇  大明朱由检,消费系统救国  穹顶:2084  

-

《御兽:我的御主是位恶役大小姐》最新章节

+

《张柠檬2》最新章节

-

《御兽:我的御主是位恶役大小姐》章节列表

+

《张柠檬2》章节列表

查看更多章节... +
  • 他被字分腿捆着拨弄阴唇像是拨弄琴弦
  • +
  • 夸奖被分腿捆绑攥着脚操完扔在原地放置
  • +
  • 生日纯爱无肉
  • +
  • 视频微视频观赏洗澡
  • +
  • 洗澡对着视频吃自己的乳头跪着清洗乳房
  • +
  • 表演被命令跪着挺胸用指甲扫弄乳尖
  • +
  • 交代对着镜头打自己屁股自罚抱头分腿蹲着
  • +
  • 审判对着镜头自慰并说明流程
  • +
  • 容器对着镜头穿上情趣内衣高跟鞋戴上项圈
  • +
  • 别人一则生活里的小插曲
  • +
  • 戏弄被极限驷马摆起来揪着奶头一晃一晃挠
  • +
  • 道理极限驷马中被戴上口枷拍照口水流了一
  • +
  • 盘点这些我捆过你的姿势你最喜欢哪个
  • +
  • 酷刑在折磨中被迫以耻辱的语言解构自己而
  • +
  • 观赏一场普通的性爱描写1开场部分
  • +
  • 厮磨一场普通的性爱描写2
  • +
  • 交媾一场普通的性爱描写3
  • +
  • 世面关于他去逛淫趴的小故事
  • +
  • 酒器淫趴里都是怎么玩儿的纪实1
  • +
  • 消费淫趴纪实2
  • +
  • 气质淫趴纪实3
  • +
  • 暴雨淫趴纪实4
  • +
  • 装裹淫趴纪实5
  • +
  • vp淫趴纪实6
  • +
  • 故事目睹了淫趴里的四飞
  • +
  • 盲盒入珠的男招待
  • +
  • 巡演以刁钻的s思路在淫趴里露了一手
  • +
  • 核心卖点
  • +
  • 白色水渍
  • +
  • 超级无敌究级大淫魔 pa o wen wu4c o
  • +
  • 歌台暖响春光融融舞殿冷袖风雨凄凄
  • +
  • 专业人士
  • +
  • 美少年杯垫
  • +
  • 掀盖头
  • +
  • 整死你
  • +
  • 人体研究
  • +
  • 豌豆射手
  • +
  • 家妓与贞操带
  • +
  • breakgbad
  • +
  • 扁笼子里的小青蛙 q ix gz i
  • +
  • 夹缝被装在扁笼子里的调教加更
  • +
  • 勾引的意念
  • +
  • 挂画与竹子惊鹿
  • +
  • 好雅兴
  • +
  • 第一次
  • +
  • 权力结构
  • +
  • 完美作品 j iz ai1 2 c o
  • +
  • 月光与危险论
  • +
  • 地牢悬挂对主人的惩罚
  • +
  • 上下
  • +
  • 生意与人情
  • +
  • 关于害羞的讨论
  • +
  • 一号木七号铁与推杆
  • +
  • 最好时机
  • +
  • 名词订正
  • +
  • 过家家游戏
  • +
  • 属于我的人
  • +
  • 无聊交往
  • +
  • 悬疑故事
  • +
  • 忍耐前两天鸽了写够两千字以表歉意
  • +
  • 正宗主人
  • +
  • 报菜名
  • +
  • 正宗捆绑
  • +
  • 洒水车 sew uwu8c o
  • +
  • 他总是会有新的女孩儿
  • +
  • 我的贞操带使用心得
  • +
  • 我的贞操带使用心得2补之前的鸽的
  • +
  • 一样坏
  • +
  • 厨师与司机
  • +
  • 巴尔神选
  • +
  • 投降
  • +
  • 无尽模式 yes es uw u6c o
  • +
  • 纣王
  • +
  • 肉便器的自我修养
  • +
  • 肉便器的服务流程
  • +
  • 我的缺点
  • +
  • 身为前辈
  • +
  • 玩玩具
  • +
  • 二重奏
  • + 查看更多章节...

    已完结热门小说推荐

    @@ -320,57 +292,57 @@

    最新标签

    - +
    - - + + \ No newline at end of file diff --git a/code/333.php b/code/333.php index 4331037..a65a9e8 100644 --- a/code/333.php +++ b/code/333.php @@ -52,7 +52,8 @@ while (true) { // 等待所有请求完成 $responses = Promise\Utils::unwrap($promises); - + $results = Promise\settle($promises)->wait(); + foreach ($responses as $key => $response) { // echo "$key: " . $response->getBody() . "\n"; diff --git a/code/app/task/collection/PullDataColBase.php b/code/app/task/collection/PullDataColBase.php index 50f76e2..38144a8 100644 --- a/code/app/task/collection/PullDataColBase.php +++ b/code/app/task/collection/PullDataColBase.php @@ -37,8 +37,6 @@ class PullDataColBase $this->QueueManage = new QueueManage(); } - - public function getAilisiDomain() { if (!key_exists('AILISI_DOMAIN', $this->arrCaiJiPeiZhi)) { @@ -47,78 +45,4 @@ class PullDataColBase return $this->arrCaiJiPeiZhi['AILISI_DOMAIN']; } - - public function getAilisiCookie() - { - if (!key_exists('AILISI_COOKIE', $this->arrCaiJiPeiZhi)) { - $strCookie = CaiJiPeiZhiModel::getValByCode('AILISI_COOKIE'); - $this->arrCaiJiPeiZhi['AILISI_COOKIE'] = parseCookies($strCookie); - } - - return $this->arrCaiJiPeiZhi['AILISI_COOKIE']; - } - - public function getTianLaiDomain() - { - if (!key_exists('TIANLAI_DOMAIN', $this->arrCaiJiPeiZhi)) { - $this->arrCaiJiPeiZhi['TIANLAI_DOMAIN'] = CaiJiPeiZhiModel::getValByCode('TIANLAI_DOMAIN'); - } - - return $this->arrCaiJiPeiZhi['TIANLAI_DOMAIN']; - } - - public function getBiquxsDomain() - { - if (!key_exists('BIQUXS_DOMAIN', $this->arrCaiJiPeiZhi)) { - $this->arrCaiJiPeiZhi['BIQUXS_DOMAIN'] = CaiJiPeiZhiModel::getValByCode('BIQUXS_DOMAIN'); - } - - return $this->arrCaiJiPeiZhi['BIQUXS_DOMAIN']; - } - - public function get5cccDomain() - { - if (!key_exists('5CCC_DOMAIN', $this->arrCaiJiPeiZhi)) { - $this->arrCaiJiPeiZhi['5CCC_DOMAIN'] = CaiJiPeiZhiModel::getValByCode('5CCC_DOMAIN'); - } - - return $this->arrCaiJiPeiZhi['5CCC_DOMAIN']; - } - - public function get630zwDomain() - { - if (!key_exists('630zw_DOMAIN', $this->arrCaiJiPeiZhi)) { - $this->arrCaiJiPeiZhi['630zw_DOMAIN'] = CaiJiPeiZhiModel::getValByCode('630zw_DOMAIN'); - } - - return $this->arrCaiJiPeiZhi['630zw_DOMAIN']; - } - - - public function getDadiDomain() - { - if (!key_exists('DADI_DOMAIN', $this->arrCaiJiPeiZhi)) { - $this->arrCaiJiPeiZhi['DADI_DOMAIN'] = CaiJiPeiZhiModel::getValByCode('DADI_DOMAIN'); - } - - return $this->arrCaiJiPeiZhi['DADI_DOMAIN']; - } - public function getHeiMuErDomain() - { - if (!key_exists('HEIMUER_DOMAIN', $this->arrCaiJiPeiZhi)) { - $this->arrCaiJiPeiZhi['HEIMUER_DOMAIN'] = CaiJiPeiZhiModel::getValByCode('HEIMUER_DOMAIN'); - } - - return $this->arrCaiJiPeiZhi['HEIMUER_DOMAIN']; - } - public function YouZhiZiYuanDomain() - { - if (!key_exists('YZZY_DOMAIN', $this->arrCaiJiPeiZhi)) { - $this->arrCaiJiPeiZhi['YZZY_DOMAIN'] = CaiJiPeiZhiModel::getValByCode('YZZY_DOMAIN'); - } - - return $this->arrCaiJiPeiZhi['YZZY_DOMAIN']; - } - - } diff --git a/code/app/task/collection/zw630/Zw630Col.php b/code/app/task/collection/zw630/Zw630Col.php index 93b4365..2f46683 100644 --- a/code/app/task/collection/zw630/Zw630Col.php +++ b/code/app/task/collection/zw630/Zw630Col.php @@ -7,37 +7,171 @@ namespace app\task\collection\zw630; use app\model\XiaoShuoXiangQingModel; use app\task\collection\PullDataColBase; +use db\mongo\MongoBase; use GuzzleHttp\Cookie\CookieJar; use processor\ImageProcessor; use think\facade\Cache; use QL\QueryList; +use minserver\QueueManage; +use GuzzleHttp\Client; /** * @mixin think\Model */ class Zw630Col extends PullDataColBase { + private $strDomain = 'https://www.630zw.org'; + + /** + * Undocumented variable + * + * @var MongoBase + */ + private $MongoBase; + + public function __construct() + { + $this->MongoBase = MongoBase::getInstance(); + + $this->Client = new Client([ + 'base_uri' => $this->strDomain, + 'http_errors' => false, + 'version' => 2.0, // 强制使用 HTTP/2 + 'timeout' => 160, + 'connect_timeout' => 30, // 连接超时 10 秒 + 'curl' => [ + CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_2_0, // 强制 HTTP/2 + CURLOPT_TCP_KEEPALIVE => 1, // 启用 TCP Keep-Alive + CURLOPT_SSL_VERIFYPEER => true, // 验证 SSL + ], + 'headers' => [ + 'User-Agent' => 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36 Edg/134.0.0.0', + 'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', + 'Accept-Language' => 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6', + 'Referer' => $this->strDomain, + 'sec-ch-ua-mobile' => '?1', + 'sec-ch-ua-platform' => '"Android"', + 'sec-fetch-dest' => 'document', + 'sec-fetch-mode' => 'navigate', + 'sec-fetch-site' => 'same-origin', + 'sec-fetch-user' => '?1', + 'upgrade-insecure-requests' => '1', + ], + ]); + + $this->QueueManage = new QueueManage(); + } + public function pull630ZwNovel() { // 全局扫描任务 $QueueManage = $this->QueueManage; - for ($i = 1; $i <= 531208; $i++) { + // for ($intNovelId = 1; $intNovelId <= 531208; $intNovelId++) { + // for ($intNovelId = 1; $intNovelId <= 10000; $intNovelId++) { + for ($intNovelId = 1; $intNovelId <= 1; $intNovelId++) { $arrTask = [ 'callback' => [self::class, 'getNovelInfo'], 'data' => [ - 'n_id' => $i, + 'n_id' => $intNovelId, + 'page' => 0, ] ]; - print_r($arrTask); - // $QueueManage->set($arrTask); + // print_r($arrTask); + $QueueManage->set($arrTask); } } public function getNovelInfo($arrData) + { + // content="mobile" 有这个的是手机,否则是PC + print_r($arrData); + + if ($arrData['page'] == 0) { + $strUri = sprintf('/shu/%s.html', $arrData['n_id']); + } else { + $strUri = sprintf('/shu/%s_%s.html', $arrData['n_id']); + } + + $ResponseBase = $this->Client->get($strUri); + $strNovelContent = $ResponseBase->getBody()->getContents(); + + $NovelQuery = QueryList::html($strNovelContent); + + $arrNovel = $this->getNovelHead($NovelQuery, $arrData['n_id'], $arrData['page']); + + if (empty($arrNovel)) { + return false; + } + + + print_r($arrNovel); + // $strResult = (string)$Response->getBody(); + } + + private function getNovelHead(QueryList $QueryList, $intSourceNovelId, $intPage = 0) + { + $arrResult = []; + $QueryList->find('meta[property]')->each(function ($Item) use (&$arrResult) { + $property = str_replace(':', '_', $Item->attr('property')); + $arrResult[$property] = $Item->attr('content'); + }); + + if (empty($arrResult)) { + return false; + } + + // print_r($arrResult); + + $arrResult['novel_source_id'] = 'zw630-' . $intSourceNovelId; + + try { + $Col = $this->MongoBase->getDb()->selectCollection('novel'); + + $arrExisting = $Col->findOne(['novel_source_id' => $arrResult['novel_source_id']]); + + // use novel + // db.novel.createIndex({ "novel_source_id": 1 }, { unique: true }) + + if ($arrExisting) { + + $arrExisting = (array) $arrExisting; // MongoDB\BSON\Document 转为数组 + $arrResult = array_merge($arrExisting, $arrResult); // 合并,保留原有字段 + + $arrResult['updated_at'] = new \MongoDB\BSON\UTCDateTime(); // 添加更新时间 + $Col->updateOne( + ['novel_source_id' => $arrResult['novel_source_id']], + ['$set' => $arrResult], + // ['upsert' => false] + ); + } else { + $arrResult['novel_id'] = $this->MongoBase->getNextSequence('novel'); + $this->MongoBase->insertOne('novel', $arrResult); + } + return $arrResult; + } catch (\MongoDB\Exception\Exception $e) { + throw new \Exception("Upsert failed: " . $e->getMessage()); + } + } + + + + + + + + + + + + + + + + public function getNovelInfo1($arrData) { //var_dump('getNovelFengMian'); //var_dump($arrData); diff --git a/code/app/task/module/PlanTask.php b/code/app/task/module/PlanTask.php index 8076f0d..2fb6fc7 100644 --- a/code/app/task/module/PlanTask.php +++ b/code/app/task/module/PlanTask.php @@ -38,11 +38,6 @@ class PlanTask } } - /** - * 拉取文学馆小说-都市极品医神 - * - * @return void - */ public static function pull630ZwNovel() { $arrTask = [ diff --git a/code/database/seeders/AdminUserSeeder.php b/code/database/seeders/AdminUserSeeder.php index a15d342..eabe3ef 100644 --- a/code/database/seeders/AdminUserSeeder.php +++ b/code/database/seeders/AdminUserSeeder.php @@ -2,7 +2,7 @@ namespace database\seeders; -use app\admin\model\AdminUserModel; +use app\model\AdminUserModel; class AdminUserSeeder { diff --git a/code/database/seeders/GuangGaoSeeder.php b/code/database/seeders/GuangGaoSeeder.php deleted file mode 100644 index 58db03c..0000000 --- a/code/database/seeders/GuangGaoSeeder.php +++ /dev/null @@ -1,104 +0,0 @@ - 'TAN_CHUANG_GUANG_GAO', - 'ggfz_name' => '全站弹窗广告', - 'ggfz_img_size' => '167-112' - ], - [ - 'ggfz_code' => 'PIAO_FU_GUANG_GAO', - 'ggfz_name' => '全站漂浮广告', - 'ggfz_img_size' => '60-60' - ], - [ - 'ggfz_code' => 'PIAO_FU_LEFT_GUANG_GAO', - 'ggfz_name' => '全站漂浮广告-左边', - 'ggfz_img_size' => '60-60' - ], - [ - 'ggfz_code' => 'PIAO_FU_RIGHT_GUANG_GAO', - 'ggfz_name' => '全站漂浮广告-右边', - 'ggfz_img_size' => '60-60' - ], - - [ - 'ggfz_code' => 'TOP_LUN_BO_GUANG_GAO', - 'ggfz_name' => '全站顶部轮播广告', - 'ggfz_img_size' => '375-50' - ], - - [ - 'ggfz_code' => 'ZHONG_YANG_TU_PIAN_GUANG_GAO', - 'ggfz_name' => '全站中央宫格图片广告', - 'ggfz_img_size' => '60-60' - ], - - [ - 'ggfz_code' => 'ZHONG_YANG_WEN_ZI_GUANG_GAO', - 'ggfz_name' => '全站中央文字广告', - 'ggfz_img_size' => '375-50' - ], - - - [ - 'ggfz_code' => 'XIAO_SHUO_LUN_BO_GUANG_GAO', - 'ggfz_name' => '小说详情轮播轮播广告', - 'ggfz_img_size' => '375-50' - ], - - [ - 'ggfz_code' => 'BOTTOM_DI_PIAO_GUANG_GAO', - 'ggfz_name' => '全站底飘广告', - 'ggfz_img_size' => '60-60' - ], - [ - 'ggfz_code' => 'YOUQING_LIANJIE_GUANG_GAO', - 'ggfz_name' => '友情链接', - 'ggfz_img_size' => '60-60' - ], - - - ]; - - foreach ($arrData as $arrDataOne) { - $GuangGaoFenZuModel = GuangGaoFenZuModel::where('ggfz_code', $arrDataOne['ggfz_code'])->find(); - - if (empty($GuangGaoFenZuModel)) { - $arrInsert = [ - 'ggfz_code' => $arrDataOne['ggfz_code'], - 'ggfz_name' => $arrDataOne['ggfz_name'], - ]; - GuangGaoFenZuModel::insert($arrInsert); - $GuangGaoFenZuModel = GuangGaoFenZuModel::where('ggfz_code', $arrDataOne['ggfz_code'])->find(); - } - $faker = Factory::create('zh_CN'); - for ($i = 0; $i < 2; $i++) { - $intIndex = $i+1; - $GuangGaoModelModel = GuangGaoModel::where('gg_wen_zi','广告招商'.$intIndex)->where('ggfz_id', $GuangGaoFenZuModel->ggfz_id)->find(); - if (empty($GuangGaoModelModel)) { - GuangGaoModel::insert([ - 'ggfz_id' => $GuangGaoFenZuModel->ggfz_id, - 'gg_lei_xing' => random_int(0, 1), - 'gg_tu_pian' => config('app.app_host').'/assets/images/zxtv/'.$arrDataOne['ggfz_img_size'].'.png', - 'gg_wen_zi' => '广告招商'.$intIndex, - 'gg_tiao_zhuan_di_zhi' => $faker->url(), - ]); - } - } - } - GuangGaoModel::flushCache(); - } -} diff --git a/code/database/seeders/NovelClassSeeder.php b/code/database/seeders/NovelClassSeeder.php deleted file mode 100644 index f4da1c5..0000000 --- a/code/database/seeders/NovelClassSeeder.php +++ /dev/null @@ -1,82 +0,0 @@ - '玄幻修真', - 'xsfl_source_id' => '1', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_1', - 'xsfl_sort' => 1, - ], - [ - 'xsfl_name' => '重生穿越', - 'xsfl_source_id' => '2', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_2', - 'xsfl_sort' => 2, - ], - [ - 'xsfl_name' => '都市小说', - 'xsfl_source_id' => '3', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_3', - 'xsfl_sort' => 3, - ], - [ - 'xsfl_name' => '军史小说', - 'xsfl_source_id' => '4', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_4', - 'xsfl_sort' => 4, - ], - [ - 'xsfl_name' => '网游小说', - 'xsfl_source_id' => '5', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_5', - 'xsfl_sort' => 5, - ], - [ - 'xsfl_name' => '科幻小说', - 'xsfl_source_id' => '6', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_6', - 'xsfl_sort' => 6, - ], - [ - 'xsfl_name' => '灵异小说', - 'xsfl_source_id' => '7', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_7', - 'xsfl_sort' => 7, - ], - [ - 'xsfl_name' => '言情小说', - 'xsfl_source_id' => '8', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_8', - 'xsfl_sort' => 8, - ], - [ - 'xsfl_name' => '其他小说', - 'xsfl_source_id' => '9', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_9', - 'xsfl_sort' => 9, - ], - ]; - - Db::execute('TRUNCATE TABLE xiao_shuo_fen_lei'); // 清空数据并重置自增 - } - - foreach ($arrData as $arrDataOne) { - $XiaoShuoFenLeiModel = XiaoShuoFenLeiModel::where('xsfl_name', $arrDataOne['xsfl_name'])->find(); - if (empty($XiaoShuoFenLeiModel)) { - XiaoShuoFenLeiModel::insert($arrDataOne); - } - } - } -} diff --git a/code/database/seeders/PlanTaskSeeder.php b/code/database/seeders/PlanTaskSeeder.php index eb00f0b..9808864 100644 --- a/code/database/seeders/PlanTaskSeeder.php +++ b/code/database/seeders/PlanTaskSeeder.php @@ -2,8 +2,8 @@ namespace database\seeders; -use app\admin\model\AdminUserModel; -use app\admin\model\PlanTaskModel; +use app\model\AdminUserModel; +use app\model\PlanTaskModel; class PlanTaskSeeder { @@ -20,10 +20,10 @@ class PlanTaskSeeder $arrDataNovel = [ [ - 'pt_name' => '采集文学馆小说', // 采集文学馆-都市极品医神 - 'pt_code' => 'PULL_WENXUEGUAN_XIAOSHUO', - 'pt_enable' => 0, - 'pt_limit' => 24 * 3600 * 3, + 'pt_name' => '630小说全量扫描', + 'pt_code' => 'PULL_630_ZW_NOVEL', + 'pt_enable' => 1, + 'pt_limit' => 10 * 24 * 3600 * 3, ], ]; diff --git a/code/database/seeders/SeoTdkConfigSeeder.php b/code/database/seeders/SeoTdkConfigSeeder.php deleted file mode 100644 index 8a7dd26..0000000 --- a/code/database/seeders/SeoTdkConfigSeeder.php +++ /dev/null @@ -1,189 +0,0 @@ - 'index', - 'stc_name' => '首页', - 'stc_title' => '{{{site_name}}}_书友最值得收藏的网络小说阅读网', - 'stc_keywords' => '{{{site_name}}}', - 'stc_description' => '{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'type', - 'stc_name' => '分类首页', - 'stc_title' => '{{{type}}}_{{{site_name}}}_书友最值得收藏的网络小说阅读网', - 'stc_keywords' => '{{{type}}},{{{site_name}}}', - 'stc_description' => '{{{type}}},{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'type_page', - 'stc_name' => '分类分页', - 'stc_title' => '{{{type}}}_{{{site_name}}}_书友最值得收藏的网络小说阅读网', - 'stc_keywords' => '{{{type}}},{{{site_name}}}', - 'stc_description' => '{{{type}}},{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'rank', - 'stc_name' => '排行榜', - 'stc_title' => '最新热门{{{type}}}小说排行榜-{{{site_name}}}', - 'stc_keywords' => '最新热门{{{type}}}小说排行榜-{{{site_name}}}', - 'stc_description' => '最新热门{{{type}}}小说排行榜-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'shujia', - 'stc_name' => '书架', - 'stc_title' => '我的书架,{{{site_name}}}', - 'stc_keywords' => '我的书架,{{{site_name}}}', - 'stc_description' => '我的书架,{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'detail', - 'stc_name' => '详情', - 'stc_title' => '{{{title}}}最新章节_{{{title}}}{{{zuozhe}}}_{{{title}}}小说免费全文阅读_{{{site_name}}}', - 'stc_keywords' => '{{{title}}},{{{zuozhe}}},{{{site_name}}}', - 'stc_description' => '{{{description}}};{{{title}}},{{{zuozhe}}},{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'zhangjie', - 'stc_name' => '章节', - 'stc_title' => '{{{zhangjie_title}}}最新章节,第{{{page}}}页_{{{novel_title}}}免费全文阅读_{{{site_name}}}', - 'stc_keywords' => '{{{zhangjie_title}}},{{{novel_title}}},{{{site_name}}}', - 'stc_description' => '{{{zhangjie_title}}}第{{{page}}}页_{{{novel_title}}}_{{{zuozhe}}}_{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'search', - 'stc_name' => '搜索页面', - 'stc_title' => '搜索结果{{{search_name}}}{{{site_name}}}', - 'stc_keywords' => '搜索结果{{{search_name}}}{{{site_name}}}', - 'stc_description' => '搜索结果{{{search_name}}}{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - - ]; - - //Db::execute('TRUNCATE TABLE xiao_shuo_fen_lei'); // 清空数据并重置自增 - }else { - // 视频 - $arrData = [ - - [ - 'stc_code' => 'index', - 'stc_name' => '首页', - 'stc_title' => '{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '{{{site_name}}}资源网在线观看免费官网,2024{{{site_name}}}影院免费高清电视剧大全,{{{site_name}}}影院大全在线观看,短视频,搞笑视频,视频分享,免费视频,在线视频,预告片-{{{site_name}}}', - 'stc_description' => '{{{site_name}}}资源网在线观看免费官网(www.{{{site_domain}}})2024{{{site_name}}}影院免费高清电视剧大全,{{{site_name}}}电影资源第二页,最新高清电影电视剧、伦理片、综艺、美剧、韩剧、英剧、日剧等{{{site_name}}}影视中文在线观看!提供2024最新{{{video_type}}}电视剧免费观看-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'video_type', - 'stc_name' => '分类首页', - 'stc_title' => '最新{{{video_type}}}-推荐{{{video_type}}}-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '最新{{{video_type}}}-推荐{{{video_type}}}-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => '最新{{{video_type}}}-推荐{{{video_type}}}-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'video_type_page', - 'stc_name' => '分类分页', - 'stc_title' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页 - {{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'rank', - 'stc_name' => '排行榜', - 'stc_title' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页 - {{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'shujia', - 'stc_name' => '书架', - 'stc_title' => '我的书架', - 'stc_keywords' => '我的书架', - 'stc_description' => '我的书架', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'video_detail', - 'stc_name' => '详情', - 'stc_title' => '《{{{video_title}}}》 _{{{video_type}}}{{{video_title}}} _{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '{{{video_title}}}免费观看以及免费在线下载-{{{site_name}}}', - 'stc_description' => '【{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}】为你提供好看的{{{video_title}}} {{{video_description}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'video_play', - 'stc_name' => '播放/章节', - 'stc_title' => '正在播放《{{{video_title}}}》{{{video_play_sort}}}原声版高清{{{video_title}}}-{{{video_type}}}{{{video_title}}}-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '正在播放《{{{video_title}}}》{{{video_play_sort}}}原声版高清{{{video_title}}}-{{{video_type}}}{{{video_title}}}-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => 'content="【{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}】为你提供好看的|{{{video_title}}}{{{video_play_sort}}},{{{video_type}}},|{{{video_title}}}剧情:  {{{video_title}}}-{{{site_name}}}"', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'search', - 'stc_name' => '搜索页面', - 'stc_title' => '搜索结果{{{search_name}}}------------- - {{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '搜索结果{{{search_name}}}------------- - {{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => '搜索结果{{{search_name}}}------------- - {{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'gbook', - 'stc_name' => '反馈页面', - 'stc_title' => '反馈页面{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '反馈页面{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => '反馈页面{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ] - ]; - } - - - foreach ($arrData as $arrDataOne) { - $SeoTdkConfigModel = SeoTdkConfigModel::where('stc_code', $arrDataOne['stc_code'])->find(); - - if (empty($SeoTdkConfigModel)) { - SeoTdkConfigModel::insert($arrDataOne); - } - } - } -} diff --git a/code/database/seeders/SiteSeeder.php b/code/database/seeders/SiteSeeder.php deleted file mode 100644 index 85d8cd9..0000000 --- a/code/database/seeders/SiteSeeder.php +++ /dev/null @@ -1,467 +0,0 @@ - '默认站点', 'site_type' => 'novel', 'site_fenlei_path' => 'fl', 'site_xiangqing_path' => 'xq', 'site_rank_path' => 'phb', 'site_tui_jian_path' => 'tj','site_seo_path'=> 'kan' , 'site_zdy_path' => 'zdy', 'site_zhangjie_path' => 'zj'], - ['site_name' => '站点2', 'site_type' => 'novel', 'site_fenlei_path' => 'fenlei', 'site_xiangqing_path' => 'xiaoshuo', 'site_rank_path' => 'paihanbang', 'site_tui_jian_path' => 'tuijian','site_seo_path'=> 'show' , 'site_zdy_path' => 'zidingyi', 'site_zhangjie_path' => 'zj'], - ['site_name' => '站点3', 'site_type' => 'novel', 'site_fenlei_path' => 'class', 'site_xiangqing_path' => 'novel', 'site_rank_path' => 'rank', 'site_tui_jian_path' => 'recommend','site_seo_path'=> 'yuedu' , 'site_zdy_path' => 'like', 'site_zhangjie_path' => 'zj'], - ['site_name' => '站点4', 'site_type' => 'novel', 'site_fenlei_path' => 'type', 'site_xiangqing_path' => 'info', 'site_rank_path' => 'sort', 'site_tui_jian_path' => 'nice','site_seo_path'=> 'book' , 'site_zdy_path' => 'diy', 'site_zhangjie_path' => 'zj'], - ['site_name' => '站点5', 'site_type' => 'novel', 'site_fenlei_path' => 'fenlei', 'site_xiangqing_path' => 'xiangqing', 'site_rank_path' => 'pb', 'site_tui_jian_path' => 'good','site_seo_path'=> 'see' , 'site_zdy_path' => 'obj', 'site_zhangjie_path' => 'zj'], - ['site_name' => '站点5', 'site_type' => 'novel', 'site_fenlei_path' => '分类首页', 'site_xiangqing_path' => '小说', 'site_rank_path' => '排行榜', 'site_tui_jian_path' => '推荐','site_seo_path'=> '相关' , 'site_zdy_path' => '深度', 'site_zhangjie_path' => 'zj'], - ]; - }else{ - $arrData = [ - ['site_name' => '默认站点', 'site_type' => 'video', 'site_fenlei_path' => 'vodtype', 'site_xiangqing_path' => 'voddetail', 'site_rank_path' => 'vodshow', 'site_tui_jian_path' => 'vodsearch','site_seo_path'=> 'kan' , 'site_zdy_path' => 'zdy', 'site_zhangjie_path' => 'vodplay'], - ['site_name' => '站点2', 'site_type' => 'video', 'site_fenlei_path' => 'type', 'site_xiangqing_path' => 'detail', 'site_rank_path' => 'page', 'site_tui_jian_path' => 'search','site_seo_path'=> 'show' , 'site_zdy_path' => 'like', 'site_zhangjie_path' => 'play'], - ['site_name' => '站点3', 'site_type' => 'video', 'site_fenlei_path' => 'class', 'site_xiangqing_path' => 'video', 'site_rank_path' => 'classpage', 'site_tui_jian_path' => 'sousuo','site_seo_path'=> 'baidu' , 'site_zdy_path' => 'diy', 'site_zhangjie_path' => 'm3u8'], - ['site_name' => '站点4', 'site_type' => 'video', 'site_fenlei_path' => 'type', 'site_xiangqing_path' => 'shipin', 'site_rank_path' => 'fenleipage', 'site_tui_jian_path' => 'sou','site_seo_path'=> 'liu' , 'site_zdy_path' => 'obj', 'site_zhangjie_path' => 'bofang'], - ['site_name' => '站点5', 'site_type' => 'video', 'site_fenlei_path' => 'leixin', 'site_xiangqing_path' => '视频', 'site_rank_path' => '分类', 'site_tui_jian_path' => '搜索','site_seo_path'=> 'v' , 'site_zdy_path' => '深度', 'site_zhangjie_path' => '播放'], - ]; - } - - foreach ($arrData as $arrDataOne) { - $arrDataOne['site_log_type'] = '2'; - $arrDataOne['site_email'] = 'site@gmail.com'; - $arrDataOne['site_telegram'] = '@168'; - $arrDataOne['site_domain'] = 'https://domain.com'; - $arrDataOne['site_share_domain'] = 'https://domain.com'; - $arrDataOne['site_version'] = '001'; - - $SiteModel = SiteModel::addSite($arrDataOne); - if (!empty($SiteModel)) { - try { - $intSiteId = $SiteModel->site_id ; - - if($intSiteId == config('app.default_app_id')){ - self::addGenSiteMapPlanTask($intSiteId); - } - - if($SiteModel->site_type == 'novel'){ - self::addXiaoShuoFenLei($intSiteId); - self::addXiaoShuoSeoTdk($intSiteId); - }else{ - self::addShiPinFenLei($intSiteId); - self::addShiPinSeoTdk($intSiteId); - } - } catch (\Exception $e) { - echo "Error: " . $e->getMessage(); - } - } - } - } - - // 小说分类添加 - static public function addXiaoShuoFenLei($intSiteId) - { - - $arrData = []; - if (config('app.default_app') == 'novelzw') { - - $arrData = [ - [ - 'xsfl_name' => '玄幻修真', - 'xsfl_source_id' => '1', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_1_'.$intSiteId, - 'xsfl_sort' => 1, - 'site_id' => $intSiteId, - ], - [ - 'xsfl_name' => '重生穿越', - 'xsfl_source_id' => '2', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_2_'.$intSiteId, - 'xsfl_sort' => 2, - 'site_id' => $intSiteId, - ], - [ - 'xsfl_name' => '都市小说', - 'xsfl_source_id' => '3', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_3_'.$intSiteId, - 'xsfl_sort' => 3, - 'site_id' => $intSiteId, - ], - [ - 'xsfl_name' => '军史小说', - 'xsfl_source_id' => '4', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_4_'.$intSiteId, - 'xsfl_sort' => 4, - 'site_id' => $intSiteId, - ], - [ - 'xsfl_name' => '网游小说', - 'xsfl_source_id' => '5', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_5_'.$intSiteId, - 'xsfl_sort' => 5, - 'site_id' => $intSiteId, - ], - [ - 'xsfl_name' => '科幻小说', - 'xsfl_source_id' => '6', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_6_'.$intSiteId, - 'xsfl_sort' => 6, - 'site_id' => $intSiteId, - ], - [ - 'xsfl_name' => '灵异小说', - 'xsfl_source_id' => '7', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_7_'.$intSiteId, - 'xsfl_sort' => 7, - 'site_id' => $intSiteId, - ], - [ - 'xsfl_name' => '言情小说', - 'xsfl_source_id' => '8', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_8_'.$intSiteId, - 'xsfl_sort' => 8, - 'site_id' => $intSiteId, - ], - [ - 'xsfl_name' => '其他小说', - 'xsfl_source_id' => '9', - 'xsfl_source_code' => 'ZW630_FEN_LEI_ID_9_'.$intSiteId, - 'xsfl_sort' => 9, - 'site_id' => $intSiteId, - ], - ]; - } - - foreach ($arrData as $arrDataOne) { - $XiaoShuoFenLeiModel = XiaoShuoFenLeiModel::where('xsfl_name', $arrDataOne['xsfl_name'])->where('site_id', $intSiteId)->find(); - if (empty($XiaoShuoFenLeiModel)) { - XiaoShuoFenLeiModel::insert($arrDataOne); - } - } - } - - // 小说SeoTdk添加 - static public function addXiaoShuoSeoTdk($intSiteId) - { - - $arrData = []; - if (config('app.default_app') == 'novelzw') { - - $arrData = [ - - [ - 'stc_code' => 'index', - 'stc_name' => '首页', - 'stc_title' => '{{{site_name}}}_书友最值得收藏的网络小说阅读网', - 'stc_keywords' => '{{{site_name}}}', - 'stc_description' => '{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - 'site_id' => $intSiteId, - ], - [ - 'stc_code' => 'type', - 'stc_name' => '分类首页', - 'stc_title' => '{{{type}}}_{{{site_name}}}_书友最值得收藏的网络小说阅读网', - 'stc_keywords' => '{{{type}}},{{{site_name}}}', - 'stc_description' => '{{{type}}},{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - 'site_id' => $intSiteId, - ], - [ - 'stc_code' => 'type_page', - 'stc_name' => '分类分页', - 'stc_title' => '{{{type}}}_{{{site_name}}}_书友最值得收藏的网络小说阅读网', - 'stc_keywords' => '{{{type}}},{{{site_name}}}', - 'stc_description' => '{{{type}}},{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - 'site_id' => $intSiteId, - ], - [ - 'stc_code' => 'rank', - 'stc_name' => '排行榜', - 'stc_title' => '最新热门{{{type}}}小说排行榜-{{{site_name}}}', - 'stc_keywords' => '最新热门{{{type}}}小说排行榜-{{{site_name}}}', - 'stc_description' => '最新热门{{{type}}}小说排行榜-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - 'site_id' => $intSiteId, - ], - [ - 'stc_code' => 'shujia', - 'stc_name' => '书架', - 'stc_title' => '我的书架,{{{site_name}}}', - 'stc_keywords' => '我的书架,{{{site_name}}}', - 'stc_description' => '我的书架,{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - 'site_id' => $intSiteId, - ], - [ - 'stc_code' => 'detail', - 'stc_name' => '详情', - 'stc_title' => '{{{title}}}最新章节_{{{title}}}{{{zuozhe}}}_{{{title}}}小说免费全文阅读_{{{site_name}}}', - 'stc_keywords' => '{{{title}}},{{{zuozhe}}},{{{site_name}}}', - 'stc_description' => '{{{description}}};{{{title}}},{{{zuozhe}}},{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - 'site_id' => $intSiteId, - ], - [ - 'stc_code' => 'zhangjie', - 'stc_name' => '章节', - 'stc_title' => '{{{zhangjie_title}}}最新章节,第{{{page}}}页_{{{novel_title}}}免费全文阅读_{{{site_name}}}', - 'stc_keywords' => '{{{zhangjie_title}}},{{{novel_title}}},{{{site_name}}}', - 'stc_description' => '{{{zhangjie_title}}}第{{{page}}}页_{{{novel_title}}}_{{{zuozhe}}}_{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - 'site_id' => $intSiteId, - ], - [ - 'stc_code' => 'search', - 'stc_name' => '搜索页面', - 'stc_title' => '搜索结果{{{search_name}}}{{{site_name}}}', - 'stc_keywords' => '搜索结果{{{search_name}}}{{{site_name}}}', - 'stc_description' => '搜索结果{{{search_name}}}{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - 'site_id' => $intSiteId, - ], - - ]; - } - - foreach ($arrData as $arrDataOne) { - $SeoTdkConfigModel = SeoTdkConfigModel::where('stc_code', $arrDataOne['stc_code'])->where('site_id', $intSiteId)->find(); - if (empty($SeoTdkConfigModel)) { - SeoTdkConfigModel::insert($arrDataOne); - } - } - } - - // 视频分类添加 - static public function addShiPinFenLei($intSiteId) - { - - $arrData = []; - if (config('app.default_app') == 'dianying') { - - $arrData = [ - - [ - 'vc_name' => '电影', - 'vc_sort' => '1', - 'vc_source_id' => 1, - 'site_id' => $intSiteId, - 'vc_nicheng' => 'dy' - ], - [ - 'vc_name' => '电视剧', - 'vc_sort' => '2', - 'vc_source_id' => 2, - 'site_id' => $intSiteId, - 'vc_nicheng' => 'dsj' - ], - [ - 'vc_name' => '综艺', - 'vc_sort' => '3', - 'vc_source_id' => 3, - 'site_id' => $intSiteId, - 'vc_nicheng' => 'zy' - ], - [ - 'vc_name' => '动漫', - 'vc_sort' => '4', - 'vc_source_id' => 4, - 'site_id' => $intSiteId, - 'vc_nicheng' => 'dm' - ], - [ - 'vc_name' => '短剧', - 'vc_sort' => '5', - 'vc_source_id' => 5, - 'site_id' => $intSiteId, - 'vc_nicheng' => 'duanju' - ], - [ - 'vc_name' => '体育', - 'vc_sort' => '6', - 'vc_source_id' => 6, - 'site_id' => $intSiteId, - 'vc_nicheng' => 'tiyu' - ], - ]; - } - - foreach ($arrData as $arrDataOne) { - $VideoClassModel = VideoClassModel::where('vc_name', $arrDataOne['vc_name'])->where('site_id', $intSiteId)->find(); - if (empty($VideoClassModel)) { - VideoClassModel::insert($arrDataOne); - } - } - } - - // 视频SeoTdk - static public function addShiPinSeoTdk($intSiteId) - { - - $arrData = []; - if (config('app.default_app') == 'dianying') { - - $arrData = [ - - [ - 'stc_code' => 'index', - 'stc_name' => '首页', - 'stc_title' => '{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '{{{site_name}}}资源网在线观看免费官网,2024{{{site_name}}}影院免费高清电视剧大全,{{{site_name}}}影院大全在线观看,短视频,搞笑视频,视频分享,免费视频,在线视频,预告片-{{{site_name}}}', - 'stc_description' => '{{{site_name}}}资源网在线观看免费官网(www.{{{site_domain}}})2024{{{site_name}}}影院免费高清电视剧大全,{{{site_name}}}电影资源第二页,最新高清电影电视剧、伦理片、综艺、美剧、韩剧、英剧、日剧等{{{site_name}}}影视中文在线观看!提供2024最新{{{video_type}}}电视剧免费观看-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'video_type', - 'stc_name' => '分类首页', - 'stc_title' => '最新{{{video_type}}}-推荐{{{video_type}}}-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '最新{{{video_type}}}-推荐{{{video_type}}}-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => '最新{{{video_type}}}-推荐{{{video_type}}}-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'video_type_page', - 'stc_name' => '分类分页', - 'stc_title' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页 - {{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'rank', - 'stc_name' => '排行榜', - 'stc_title' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => '最新{{{video_type}}}-推荐-第{{{type_page}}}页 - {{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清{{{video_type}}}大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'shujia', - 'stc_name' => '书架', - 'stc_title' => '我的书架', - 'stc_keywords' => '我的书架', - 'stc_description' => '我的书架', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'video_detail', - 'stc_name' => '详情', - 'stc_title' => '《{{{video_title}}}》 _{{{video_type}}}{{{video_title}}} _{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '{{{video_title}}}免费观看以及免费在线下载-{{{site_name}}}', - 'stc_description' => '【{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}】为你提供好看的{{{video_title}}} {{{video_description}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'video_play', - 'stc_name' => '播放/章节', - 'stc_title' => '正在播放《{{{video_title}}}》{{{video_play_sort}}}原声版高清{{{video_title}}}-{{{video_type}}}{{{video_title}}}-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '正在播放《{{{video_title}}}》{{{video_play_sort}}}原声版高清{{{video_title}}}-{{{video_type}}}{{{video_title}}}-{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => 'content="【{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}】为你提供好看的|{{{video_title}}}{{{video_play_sort}}},{{{video_type}}},|{{{video_title}}}剧情:  {{{video_title}}}-{{{site_name}}}"', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'search', - 'stc_name' => '搜索页面', - 'stc_title' => '搜索结果{{{search_name}}}------------- - {{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '搜索结果{{{search_name}}}------------- - {{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => '搜索结果{{{search_name}}}------------- - {{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ], - [ - 'stc_code' => 'gbook', - 'stc_name' => '反馈页面', - 'stc_title' => '反馈页面{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_keywords' => '反馈页面{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_description' => '反馈页面{{{site_name}}}资源网在线观看免费官网-2024{{{site_name}}}影院免费高清电视剧大全-www.{{{site_domain}}}-{{{site_name}}}', - 'stc_other_conf' => '', - 'stc_tongji_daima' => '', - ] - ]; - } - - foreach ($arrData as $arrDataOne) { - $SeoTdkConfigModel = SeoTdkConfigModel::where('stc_code', $arrDataOne['stc_code'])->where('site_id', $intSiteId)->find(); - if (empty($SeoTdkConfigModel)) { - $arrDataOne['site_id'] = $intSiteId; - SeoTdkConfigModel::insert($arrDataOne); - } - } - } - - - // 添加对应的站点 地图文件生成 任务 - static public function addGenSiteMapPlanTask($intSiteId) - { - - if (config('app.default_app') == 'dianying' || config('app.default_app') == 'dadiyingshi') { - $arrData = [ - [ - 'pt_name' => '视频Sitemap生成', - 'pt_code' => 'GENERATE_SITEMAP', - 'pt_enable' => 0, - 'pt_limit' => 24 * 3600 * 3, - ], - - ]; - }elseif (config('app.default_app') == 'novelzw') { - $arrData = [ - [ - 'pt_name' => '小说Sitemap生成 novelzw', - 'pt_code' => 'NOVELZW_GENERATE_SITEMAP', - 'pt_enable' => 0, - 'pt_limit' => 24 * 3600 * 3, - ], - ]; - }elseif (config('app.default_app') == 'novelsk') { - $arrData = [ - [ - 'pt_name' => '小说Sitemap生成 novelsk', - 'pt_code' => 'NOVEL_SK_GENERATE_SITEMAP', - 'pt_enable' => 0, - 'pt_limit' => 24 * 3600 * 3, - ], - ]; - }elseif (config('app.default_app') == 'maomi') { - $arrData = [ - [ - 'pt_name' => '小说Sitemap生成', - 'pt_code' => 'NOVEL_GENERATE_SITEMAP', - 'pt_enable' => 0, - 'pt_limit' => 24 * 3600 * 3, - ], - ]; - } - - foreach ($arrData as $arrPlanTask) { - $PlanTaskModel = PlanTaskModel::where('pt_code', $arrPlanTask['pt_code'])->where('site_id', $intSiteId)->find(); - $arrPlanTask['site_id'] = $intSiteId; - if (empty($PlanTaskModel)) { - PlanTaskModel::insert($arrPlanTask); - } - } - } -} - diff --git a/code/database/seeders/SystemConfigSeeder.php b/code/database/seeders/SystemConfigSeeder.php index 2458809..ee29eb0 100644 --- a/code/database/seeders/SystemConfigSeeder.php +++ b/code/database/seeders/SystemConfigSeeder.php @@ -2,11 +2,11 @@ namespace database\seeders; -use app\admin\model\AdminUserModel; -use app\admin\model\CaiJiPeiZhiModel; -use app\admin\model\GuangGaoPeiZhiModel; -use app\admin\model\PlanTaskModel; -use app\admin\model\SystemConfigModel; +use app\model\AdminUserModel; +use app\model\CaiJiPeiZhiModel; +use app\model\GuangGaoPeiZhiModel; +use app\model\PlanTaskModel; +use app\model\SystemConfigModel; class SystemConfigSeeder { diff --git a/code/database/seeders/ZiYuanDuanDianSeeder.php b/code/database/seeders/ZiYuanDuanDianSeeder.php index 8c6c061..ad0151f 100644 --- a/code/database/seeders/ZiYuanDuanDianSeeder.php +++ b/code/database/seeders/ZiYuanDuanDianSeeder.php @@ -2,10 +2,10 @@ namespace database\seeders; -use app\admin\model\AdminUserModel; -use app\admin\model\GuangGaoFenZuModel; -use app\admin\model\PlanTaskModel; -use app\admin\model\ZiYuanDuanDianModel; +use app\model\AdminUserModel; +use app\model\GuangGaoFenZuModel; +use app\model\PlanTaskModel; +use app\model\ZiYuanDuanDianModel; class ZiYuanDuanDianSeeder { diff --git a/code/extend/db/mongo/MongoBase.php b/code/extend/db/mongo/MongoBase.php index 69ea69a..582cb23 100644 --- a/code/extend/db/mongo/MongoBase.php +++ b/code/extend/db/mongo/MongoBase.php @@ -19,7 +19,7 @@ class MongoBase private static $instance; - public static function getInstance(string $uri, string $dbName): self + public static function getInstance(): self { // return [ @@ -28,7 +28,7 @@ class MongoBase // ]; if (!self::$instance) { - self::$instance = new self($uri, $dbName); + self::$instance = new self(); } return self::$instance; } @@ -38,11 +38,14 @@ class MongoBase * @param string $uri MongoDB 连接字符串 * @param string $dbName 数据库名称 */ - public function __construct(string $uri, string $dbName) + public function __construct() { try { - $this->client = new Client($uri); - $this->db = $this->client->selectDatabase($dbName); + $arrConfig = config('mongodb'); + $strUri = sprintf('mongodb://%s:%s@%s:%s', $arrConfig['username'], $arrConfig['password'], $arrConfig['hostname'], $arrConfig['hostport']); + + $this->client = new Client($strUri); + $this->db = $this->client->selectDatabase($arrConfig['database']); } catch (MongoDBException $e) { throw new \Exception("MongoDB connection failed: " . $e->getMessage()); } @@ -89,6 +92,11 @@ class MongoBase } } + public function getDb(): \MongoDB\Database + { + return $this->db; + } + /** * 插入多条数据 * @param string $collection 集合名称 diff --git a/code/fenxixq.php b/code/fenxixq.php new file mode 100644 index 0000000..78f2e15 --- /dev/null +++ b/code/fenxixq.php @@ -0,0 +1,21 @@ +find('meta[property]')->each(function ($item) use (&$result) { + $property = str_replace(':', '_', $item->attr('property')); // 冒号替换为下划线 + $result[$property] = $item->attr('content'); +}); + +// 输出结果 +print_r($result); \ No newline at end of file