核心代码 foreach ($flows['product_list'] as $k=>$gift) { $items_list[] = [ ['name' => '商品名称', 'value' => $gift['product_name'] ?? ''