foreach
循环二维数组
foreach ($date as &$v) {
$v['goods_image'] = "http://".$_SERVER['SERVER_NAME'].'/uploads/home/store/goods/'.$store_id.'/'.$v['goods_image'];
追加字段路径
.$_SERVER['SERVER_NAME'] tp框架自带获取当前域名
'member_login_ip' => request()->ip(), 获取当前ip地址
}