File:goods-offer.html
Method:query.map(columns,*where,*order)
客户端无法建立连接,因为在登录前连接初始化进程中发生错误。可能的原因包括: 客户端尝试连接的 SQL Server 的版本不受支持; 服务器过忙,无法接受新连接; 或者,服务器上存在资源限制(内存不足或已达到允许的连接最大数量)。 (provider: Shared Memory Provider, error: 0 - 管道的另一端上无任何进程。)
数据库执行错误
xmls/goods.xmls
...tMapPath(@imgpath))==0){
$return(images/default.jpg);
}
$else{
$return(@imgpath);
}
}
$function substr(str,len){
@strlen=$string(@str).length();
$if(@strlen>0){
$if(@strlen>@len){
@nstr=$string(@str).substring(0,@len);
$return(["{@nstr}..."]);
}
$else{
$return(@str);
}
}
$else{
$return(@str);
}
}
//产品详细
$sub productOfferview(){
@query=$query(goods,goods);
@crid=$http.get(crid,0,N);
@tplx=$http.get(tplx,0,N);
@query[GoodsId]=@crid;
@GoMap=@query.map(['GoodsId,GoodsName,ParaType,UserId,Price,Pic,CatalogId,SerialsId'],['GoodsId={*GoodsId}']);
@db=$db();
@db[AreaId]=$shell[AreaId];
@db[SerialsId]=@GoMap[SerialsId];
@db[CatalogId]=@GoMap[CatalogId];
@countcrid=@db.dataScalar(['select count(*) from goods_goods goo left join usmanufactor man on goo.ManufactorId=man.ManufactorId where goo.Status=1 and man.Status=1 and man.mStatus=0 and goo.AreaId={*AreaId} and CatalogId={*CatalogId}']);
@counttplx=@db.dataScalar(['select cou...