机器人提醒调整
This commit is contained in:
parent
2121aa2902
commit
90f00dd215
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue