|
...
|
...
|
@@ -10,6 +10,7 @@ namespace App\Console\Commands\Inquiry; |
|
|
|
use App\Helper\Common;
|
|
|
|
use App\Helper\Gpt;
|
|
|
|
use App\Helper\Translate;
|
|
|
|
use App\Helper\Validate;
|
|
|
|
use App\Models\Ai\AiCommand;
|
|
|
|
use App\Models\Inquiry\ReInquiryConfig;
|
|
|
|
use App\Models\Inquiry\ReInquiryDetail;
|
|
...
|
...
|
@@ -329,7 +330,10 @@ class RelayInquiry extends Command |
|
|
|
$val->save();
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
//验证手机号 无效 号码不推送
|
|
|
|
if(!Validate::phone($val->phone)){
|
|
|
|
$val->phone = '';
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
$res = false;
|
|
|
|
foreach ($ad_task as $task){
|
|
...
|
...
|
@@ -382,6 +386,10 @@ class RelayInquiry extends Command |
|
|
|
return '过滤邮箱:' . $filter_email;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//邮箱有效性
|
|
|
|
if(!Validate::email($data['email'])){
|
|
|
|
return '邮箱无效';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//过滤电话
|
|
|
|
if(!empty($data['phone']) && !empty($config['filter_mobiles'])){
|
...
|
...
|
|