修改whatshub工单爬虫
This commit is contained in:
@@ -41,6 +41,26 @@ class AntiBotConfigBuilder
|
||||
'sessionKey' => $sessionKey,
|
||||
'challengeTimeoutMs' => 60000,
|
||||
'sessionTtlMinutes' => $ttlMinutes,
|
||||
] + self::postCfReadyExtras($ticketType);
|
||||
}
|
||||
|
||||
/**
|
||||
* 按工单类型附加 CF 过盾后的业务页就绪等待(仅 Whatshub 等需要的类型)
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
private static function postCfReadyExtras(string $ticketType): array
|
||||
{
|
||||
if ($ticketType !== 'whatshub') {
|
||||
return [];
|
||||
}
|
||||
|
||||
return [
|
||||
'postCfReadyUrlContains' => 'work-order-sharing',
|
||||
'postCfReadySelector' => '.el-input__inner',
|
||||
'postCfReadyTimeoutMs' => 30000,
|
||||
'postCfSettleMs' => 500,
|
||||
'postCfSpaWaitMs' => 8000,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user