作者 赵彬吉

update

@@ -138,6 +138,11 @@ class AdsController extends BaseController @@ -138,6 +138,11 @@ class AdsController extends BaseController
138 return $this->response('请添加关联网站!', Code::USER_ERROR, []); 138 return $this->response('请添加关联网站!', Code::USER_ERROR, []);
139 } 139 }
140 $is_require_num = 0; 140 $is_require_num = 0;
  141 + foreach ($target as $k=>$v){
  142 + if(empty($item['url'])){
  143 + unset($target[$k]);
  144 + }
  145 + }
141 foreach ($target as &$item){ 146 foreach ($target as &$item){
142 if(empty($item['url'])){ 147 if(empty($item['url'])){
143 return $this->response('网站域名不能为空!', Code::USER_ERROR, []); 148 return $this->response('网站域名不能为空!', Code::USER_ERROR, []);