作者 Your Name
@@ -112,6 +112,9 @@ class AdsController extends BaseController @@ -112,6 +112,9 @@ class AdsController extends BaseController
112 if(empty($item['agent'])){ 112 if(empty($item['agent'])){
113 return $this->response('代理不能为空!', Code::USER_ERROR, []); 113 return $this->response('代理不能为空!', Code::USER_ERROR, []);
114 } 114 }
  115 + if(empty($item['agent_group'])){
  116 + return $this->response('代理商分组不能为空!', Code::USER_ERROR, []);
  117 + }
115 $item['url'] = trim(str_replace(['http://', 'https://'], '', $item['url']), '/'); 118 $item['url'] = trim(str_replace(['http://', 'https://'], '', $item['url']), '/');
116 } 119 }
117 $task->target = json_encode($target); 120 $task->target = json_encode($target);