SeaCMS后台自定义采集增加别名采集
编辑 /include/collection.class.php
文件,找到:
$v_data['v_name']=getAreaValue($loopstr,"name",$html,$listconf["removecode"]);
$v_data['v_name']=$this->filterWord($v_data['v_name'],0);
$v_data['v_enname']=Pinyin($v_data['v_name']);
$v_data['v_name'] = htmlspecialchars($v_data['v_name']);
$v_data['v_name'] = str_replace(array('\\','()','\''),'/',$v_data['v_name']);
在下方插入:
$v_data['v_nickname']=getAreaValue($loopstr,"nickname",$html,$listconf["removecode"]);
$v_data['v_nickname'] = htmlspecialchars($v_data['v_nickname']);
编辑 /include/collection.func.php
文件,找到:
getTestAreaValue($loopstr,"name","影片名称",$html,$removecode);
在下方插入:
getTestAreaValue($loopstr,"nickname","影片别名",$html,$removecode);