机器人提醒调整

This commit is contained in:
jianghanbo 2024-09-11 17:25:36 +08:00
parent 2121aa2902
commit 90f00dd215
1 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,7 @@ class Tongcheng {
protected $cookie;
private $gate = 'https://ebk.17u.cn';
public $totalPage = 6;
private $tryTimes = 0;
public function __construct($os = 6)
{
@ -272,8 +273,11 @@ class Tongcheng {
$res = json_decode($body);
if (!isset($res->code) || $res->code != 1000) {
Log::info( "同城 body{$body} \n\n");
if ($this->tryTimes > 3) {
(new ThirdApiService())->weComNotice($this->os);
}
$this->tryTimes++;
}
return $res;
}
}