曾超新 5 years ago
parent aaf09fe8e3
commit 4be90cb11e
  1. 2
      frontend/controllers/MarketingStrategyController.php

@ -649,7 +649,7 @@ 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;
$tmp_gift = GiftT::findOne('id='.$gift_info['id']); $tmp_gift = GiftT::find()->where('id='.$gift_info['id'])->one();
if($tmp_gift && $tmp_gift->type_id == 2) { if($tmp_gift && $tmp_gift->type_id == 2) {
$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 {

Loading…
Cancel
Save