File:en/product-details.htm
Method:map.get(key,default)
rowGoods??get
类型不正确
en/xmls/brand.xmls
...Id];
@querycata[AreaId]=@AreaId;
@cataname=@querycata.scalar(CatalogName,['CatalogId={*CatalogId} and AreaId={*AreaId}']);
@rowcontent=@querycata.row(@CatalogId);
@Modified=$empty;
$if(@rowcontent<>$null){

}
$else{
@rowcontent=$map();
@rowcontent[Title]=无数据;
}
$shell.put(@rowcontent);
$return($empty);
}

//产品详情
$sub viewGoods(){
@queryGoods=$query(goods,goods);
@Guid=$argv(0,$null);
@queryGoods[GoodsCode]=@Guid;
@rowGoods=@queryGoods.map(*,['GoodsCode={*GoodsCode}']);
$if(
@rowGoods[CAS]==$empty){
@ca=11111-01;

}
$else{
@ca=@rowGoods[CAS];
}
$if(!@rowGoods){
$write.error();
$end();
}
//安全图片
@GHS=$string(@rowGoods[GHScode]);
@gimg=$string();
@GHSs=@GHS.split(\,);
@GHSs.foreach(){
@var=$var[value];
$if(@var){
@gimg.append(["<img src='../files/GHS/{@var}.jpg' class='Ghs'/>"]);
}
}
@queryGoods[GoodsId]=@rowGoods[GoodsId];
@queryGoods.setField($field(Click,Click+1,object));
@queryGoods.update();
@rowGoods[Gimg]=@gimg;
$shell.put(@rowGoods);
$...