机器人提醒调整
This commit is contained in:
parent
2121aa2902
commit
90f00dd215
|
@ -18,6 +18,7 @@ class Tongcheng {
|
||||||
protected $cookie;
|
protected $cookie;
|
||||||
private $gate = 'https://ebk.17u.cn';
|
private $gate = 'https://ebk.17u.cn';
|
||||||
public $totalPage = 6;
|
public $totalPage = 6;
|
||||||
|
private $tryTimes = 0;
|
||||||
|
|
||||||
public function __construct($os = 6)
|
public function __construct($os = 6)
|
||||||
{
|
{
|
||||||
|
@ -272,7 +273,10 @@ class Tongcheng {
|
||||||
$res = json_decode($body);
|
$res = json_decode($body);
|
||||||
if (!isset($res->code) || $res->code != 1000) {
|
if (!isset($res->code) || $res->code != 1000) {
|
||||||
Log::info( "同城 body:{$body} \n\n");
|
Log::info( "同城 body:{$body} \n\n");
|
||||||
(new ThirdApiService())->weComNotice($this->os);
|
if ($this->tryTimes > 3) {
|
||||||
|
(new ThirdApiService())->weComNotice($this->os);
|
||||||
|
}
|
||||||
|
$this->tryTimes++;
|
||||||
}
|
}
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue