File:goods-offer.html
Method:query.map(columns,*where,*order)
连接超时时间已到。在尝试使用预登录握手确认时超过了此超时时间。这可能是因为预登录握手失败或服务器未能及时响应。 尝试连接到此服务器时花费的持续时间是 - [Pre-Login] initialization=2;handshake=15039;
数据库执行错误
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...