error-天生赢家凯发k8国际

file:web/product3.html
function code:310
method code:1
newsmap??get
类型不正确
class/product.xmlc
...id={@cid});
@data=@catalog.pager(@format,*,{%status>0 and path like '%.{@cid}.%' {=} and title like '%{@keyword}%' or cxh like '%{@keyword}%' %},{%grade asc,id desc%},16,$get.number(page,1),8);
$return(@format.tostring(body));
}



//产品详情
$sub prodview(){
@querys=$query(content,product);
@cid=$get.number(cid);
@catalog=$query(catalog,product);
@id=$get.number(id);
$layout[title]=@catalog.datascalar(catalogname,catalogid={@cid});
@newsmap=@querys.datamap(*,id={@id} and status=1);
@
dt=@newsmap[modified].to(datetime);
@newsmap[modified]=@dt.tostring(yyyy-mm-dd);
$if(@newsmap==$null){
$content.write(数据不存在!);
$end();
}
$return($empty);
}
网站地图