|
@@ -189,10 +189,10 @@ class BookGiftsService
|
|
];
|
|
];
|
|
}
|
|
}
|
|
if($gift){
|
|
if($gift){
|
|
- foreach ($gift as $item){
|
|
|
|
- $item['name_desc'] = $gift_info[$item['gift_id']];
|
|
|
|
- $item['cost'] = $gift_info[$item['cost']];
|
|
|
|
- $item['icon'] = $gift_info[$item['icon']];
|
|
|
|
|
|
+ foreach ($gift as &$item){
|
|
|
|
+ $item['name_desc'] = $gift_info[$item['gift_id']]['name_desc'];
|
|
|
|
+ $item['cost'] = $gift_info[$item['gift_id']]['cost'];
|
|
|
|
+ $item['icon'] = $gift_info[$item['gift_id']]['icon'];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return $gift;
|
|
return $gift;
|
|
@@ -247,10 +247,10 @@ class BookGiftsService
|
|
];
|
|
];
|
|
}
|
|
}
|
|
if($gift){
|
|
if($gift){
|
|
- foreach ($gift as $item){
|
|
|
|
- $item['name_desc'] = $gift_info[$item['gift_id']];
|
|
|
|
- $item['cost'] = $gift_info[$item['cost']];
|
|
|
|
- $item['icon'] = $gift_info[$item['icon']];
|
|
|
|
|
|
+ foreach ($gift as &$item){
|
|
|
|
+ $item['name_desc'] = $gift_info[$item['gift_id']]['name_desc'];
|
|
|
|
+ $item['cost'] = $gift_info[$item['gift_id']]['cost'];
|
|
|
|
+ $item['icon'] = $gift_info[$item['gift_id']]['icon'];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return $gift;
|
|
return $gift;
|