陈德本 5 lat temu
rodzic
commit
cc7adb43f1
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      Library/Sms/ReceiveSmsCc.php

+ 4 - 0
Library/Sms/ReceiveSmsCc.php

@@ -75,6 +75,10 @@ class ReceiveSmsCc implements Sms
         $info = Num::getOne(['country' => $country, 'phone' => $phone_num]);
         if ($info) {
             $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);
             $range = ".table-hover";
             $rules = [