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