你foreach的第一行,每次都把$array参数重新赋值, 当然收集不起来了:
$result=array();
foreach($rs1 as $rss1){
$array = explode('/',$rss1['GoodsPicture']);
$s=substr($array[8],0,-4);
$rs2=Transpic::imagecropper($rss1['GoodsPicture'], 120, 82.5,$s);
$rss2=array("MiniPicture"=>"$rs2");
$arr=array_merge($rss1,$rss2);
$result[]=$arr;
}
return $result;