您可能没明白我的意思~ 我在上面有需要的结果格式,就是说把shop放出来,把商品信息和购物车信息合并~
···
2 => array:28 [
"id" => 2
"user_id" => 2
"name" => "影视度假村欢"
"company" => "影视度假村欢"
"goods" => array:2 [
0 => array:7 [
"id" => 1
"good_sn" => "TJD-2016-001"
"good_name" => "农家土鸡蛋"
"uid" => 1
"product_id" => 10
"product_type" => 1
"buynum" => 4
]
1 => array:7 [
"id" => 2
"good_sn" => "TYD-2016-002"
"good_name" => "农家土鸭蛋"
"uid" => 1
"product_id" => 11
"product_type" => 1
"buynum" => 1
]
]
]
···