Просмотр исходного кода

商品详情优惠券显示修复

evoxwht 4 лет назад
Родитель
Сommit
9ac6cd5bca
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      crmeb/app/services/coupon/StoreCouponIssueServices.php

+ 4 - 0
crmeb/app/services/coupon/StoreCouponIssueServices.php

@@ -306,6 +306,10 @@ class StoreCouponIssueServices extends BaseServices
                 $v['start_use_time'] = date('Y/m/d', $v['start_use_time']);
                 $v['end_use_time'] = $v['end_use_time'] ? date('Y/m/d', $v['end_use_time']) : date('Y/m/d', time() + 86400);
             }
+            if ($v['start_time']) {
+                $v['start_time'] = date('Y/m/d', $v['start_time']);
+                $v['end_time'] = date('Y/m/d', $v['end_time']);
+            }
         }
         $data['list'] = $list;
         $data['count'] = $this->dao->getIssueCouponCount($where['product_id'], $cateId);