优化代码

dev
曾超新 5 years ago
parent 1bba91fb4e
commit 95d18ac663
  1. 3
      frontend/controllers/MarketingStrategyController.php

@ -649,7 +649,8 @@ 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_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']];
} else {
$tmp_row['gifts'][$index]['img_src'] = '';

Loading…
Cancel
Save