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

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

		return true;
	}
验证采集规则.

@param array $conf

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