{dede:productimagelist}
<a href="[field:imgsrc/]" title="[field:text/]"><img src="[field:imgsrc/]" /></a>
{/dede:productimagelist}

不过既然提出了imgurls标签的这个问题,自然也是有解决办法的。

打开 include\taglib\channel\img.lib.php,找到,

$fields['text'] = str_replace("'","",$ctag->GetAtt('text'));
$fields['title'] = $title;
$fields['imgsrc'] = trim($ctag->GetInnerText());
$fields['imgsrctrue'] = $fields['imgsrc'];

在其下添加,

$fields['photoid'] = $GLOBAL['photoid']+1;

最后在模板中就可以用 [field:photoid/] 实现数字递增了。