Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -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); |
-
请 注册 或 登录 后发表评论