Commit 33a0a3db authored by hj's avatar hj

更新提交

parent 0f5b00ba
...@@ -96,7 +96,7 @@ class CheMenuService ...@@ -96,7 +96,7 @@ class CheMenuService
$responseHtml = $this->apiService->getPage($pageUrl); $responseHtml = $this->apiService->getPage($pageUrl);
//file_put_contents('./test3.html', $responseHtml); //file_put_contents('./test3.html', $responseHtml);
if($responseHtml){ if($responseHtml){
if(preg_match('/<h2><span class=[\\\'|\"]caption-subject font-blue-sharp bold[\\\'|\"]>Sorry ! You visit too frequently, please complete validation&nbsp;&nbsp;-&nbsp;&nbsp;step1</span></h2>/i', $responseHtml)){ if(preg_match('/<h2><span class=[\\\'|\"]caption-subject font-blue-sharp bold[\\\'|\"]>Sorry ! You visit too frequently, please complete validation[\s\S]*?</span></h2>/i', $responseHtml)){
SimpleLogs::writeLog('遇到反爬系统', 'chemenu info', 'info'); SimpleLogs::writeLog('遇到反爬系统', 'chemenu info', 'info');
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment