|
@@ -74,6 +74,10 @@ class ReceiveSmsFree implements Sms
|
|
|
$info = Num::getOne(['country' => $country, 'phone' => $phone_num]);
|
|
$info = Num::getOne(['country' => $country, 'phone' => $phone_num]);
|
|
|
if ($info) {
|
|
if ($info) {
|
|
|
$response = Curl::get($info['url'],Proxy::getData());
|
|
$response = Curl::get($info['url'],Proxy::getData());
|
|
|
|
|
+ $off_line=substr_count($response, "Offline")>0;
|
|
|
|
|
+ if ($off_line){
|
|
|
|
|
+ Num::update(['status' => 0], ['id'=>$info['id']]);
|
|
|
|
|
+ }
|
|
|
$ql = (new QueryList)->setHtml($response);
|
|
$ql = (new QueryList)->setHtml($response);
|
|
|
$range = ".row:gt(0)";
|
|
$range = ".row:gt(0)";
|
|
|
$rules = [
|
|
$rules = [
|