|
...
|
...
|
@@ -112,6 +112,9 @@ class AdsController extends BaseController |
|
|
|
if(empty($item['agent'])){
|
|
|
|
return $this->response('代理不能为空!', Code::USER_ERROR, []);
|
|
|
|
}
|
|
|
|
if(empty($item['agent_group'])){
|
|
|
|
return $this->response('代理商分组不能为空!', Code::USER_ERROR, []);
|
|
|
|
}
|
|
|
|
$item['url'] = trim(str_replace(['http://', 'https://'], '', $item['url']), '/');
|
|
|
|
}
|
|
|
|
$task->target = json_encode($target);
|
...
|
...
|
|