lp0206

396 经验值

$order = array{
    0=>array('order_sn'=>123,'good_id'=1)
}


$goods = array{
    0=>array('good_id'=>1,'good_name'=>'苹果')
}

foreach($order as &$oval){

        foreach($goods as $gval){

              if($gval['good_id']== $oval['good_id']) {

                            $oval['good_name'] = $gval['good_name'];

        }

}

怎样用collection重构

群主大神怎么不讲将中间件