|
|
|
@ -649,7 +649,11 @@ class MarketingStrategyController extends UserBaseController |
|
|
|
|
foreach($tmp_row['gifts'] as $index => $gift_info) { |
|
|
|
|
if(in_array($gift_info['id'], $order_gift_ids)) { |
|
|
|
|
$tmp_row['gifts'][$index]['selected'] = 1; |
|
|
|
|
if($gift->type_id == 1) { |
|
|
|
|
$tmp_row['gifts'][$index]['img_src'] = $order_gift_srcs[$gift_info['id']]; |
|
|
|
|
} else { |
|
|
|
|
$tmp_row['gifts'][$index]['img_src'] = ''; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
$tmp_row['gifts'][$index]['selected'] = 0; |
|
|
|
|
} |
|
|
|
|