Skip to content

Commit d8c7333

Browse files
authored
Merge pull request #215 from mojieafei/master
新增:适配站点dubhe(天枢 )
2 parents 28aa926 + c157fe2 commit d8c7333

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

app/admin/services/site/LayuiTemplate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public static function generate(string $site): GenerateInterface
116116
'novahd',
117117
'lajidui',
118118
'hxpt',
119+
'dubhe'
119120
'keepfrds' => Decorator::make([NexusPHP::class, OptionsUrlJoin::class, OptionsLimit::class], $default),
120121
'yemapt' => Decorator::make([OptionsRssUrl::class], $default),
121122
'ttg' => Decorator::make([NexusPHP::class, OptionsLimit::class, OptionsRssUrl::class], $default),
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
namespace Iyuu\SiteManager\Cookie;
4+
5+
use Iyuu\SiteManager\BaseCookie;
6+
use Iyuu\SiteManager\Frameworks\NexusPhp\HasCookie;
7+
use Iyuu\SiteManager\Spider\Pagination;
8+
9+
/**
10+
* dubhe
11+
* - 凭cookie解析HTML列表页
12+
*/
13+
class CookieDubhe extends BaseCookie
14+
{
15+
use HasCookie, Pagination;
16+
17+
/**
18+
* 站点名称
19+
*/
20+
public const string SITE_NAME = 'dubhe';
21+
22+
/**
23+
* 是否调试当前站点
24+
* @return bool
25+
*/
26+
protected function isDebugCurrent(): bool
27+
{
28+
return false;
29+
}
30+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Iyuu\SiteManager\Driver;
4+
5+
use Iyuu\SiteManager\BaseDriver;
6+
use Iyuu\SiteManager\Contracts\Processor;
7+
use Iyuu\SiteManager\Contracts\ProcessorXml;
8+
use Iyuu\SiteManager\Frameworks\NexusPhp\HasRss;
9+
10+
/**
11+
* novahd
12+
*/
13+
class DriverDubhe extends BaseDriver implements Processor, ProcessorXml
14+
{
15+
use HasRss;
16+
17+
/**
18+
* 站点名称
19+
*/
20+
public const string SITE_NAME = 'dubhe';
21+
}

0 commit comments

Comments
 (0)