src/curlient/crawler/ListCrawler.php
public static function validate($conf) {
		if (!isset($conf['url']) || empty($conf['url'])) {
			return _tr('url is missed@crawler');
		}

		if (!isset($conf['list']) || empty($conf['list'])) {
			return _tr('list is missed@crawler');
		}

		if (!isset($conf['list']['pages']) && !isset($conf['list']['pages1'])) {
			return _tr('page is missed@crawler');
		}

		if (!isset($conf['conf']) || !is_array($conf['conf'])) {
			return _tr('conf is missed or conf is not array@crawler');
		}

		return true;
	}
public static function validate($conf) {
		if (!isset($conf['url']) || empty($conf['url'])) {
			return _tr('url is missed@crawler');
		}

		if (!isset($conf['list']) || empty($conf['list'])) {
			return _tr('list is missed@crawler');
		}

		if (!isset($conf['list']['pages']) && !isset($conf['list']['pages1'])) {
			return _tr('page is missed@crawler');
		}

		if (!isset($conf['conf']) || !is_array($conf['conf'])) {
			return _tr('conf is missed or conf is not array@crawler');
		}

		return true;
	}
验证采集规则.

@param array $conf

@return bool|string 验证成功返回true，否则返回错误信息.