|
|
@@ -6,6 +6,7 @@ namespace Heanup\Library\Sms;
|
|
|
|
|
|
use Heanup\App\Api\Config\Code;
|
|
|
use Heanup\App\Api\Package\Database\Num;
|
|
|
+use Heanup\Config\Proxy;
|
|
|
use Heanup\Library\Curl;
|
|
|
use QL\QueryList;
|
|
|
|
|
|
@@ -73,15 +74,16 @@ class ReceiveSmsCc implements Sms
|
|
|
{
|
|
|
$info = Num::getOne(['country' => $country, 'phone' => $phone_num]);
|
|
|
if ($info) {
|
|
|
- $response = Curl::get($info['url'], "myhome.97admin.com:34185");
|
|
|
+ $proxy=Proxy::getData("http_proxy");
|
|
|
+ $response = Curl::get($info['url'], $proxy);
|
|
|
$ql = (new QueryList)->setHtml($response);
|
|
|
- $range = ".table-hover:gt(0)";
|
|
|
+ $range = ".table-hover";
|
|
|
$rules = [
|
|
|
'from' => [".col-xs-12 > .mobile_hide", "text"],
|
|
|
'time' => [".col-xs-0", "text"],
|
|
|
'message' => [".col-md-8", "text"]
|
|
|
];
|
|
|
- $ql->find(".mobile_hide:contains(Ads)")->parent()->parent()->remove();
|
|
|
+ $ql->find(".mobile_hide:contains(Google)")->parent()->parent()->remove();
|
|
|
$msgs = $ql->range($range)->rules($rules)->query()->getData()->all();
|
|
|
return $msgs;
|
|
|
}
|