Browse Source

优惠券有效期限

gorden 5 tháng trước cách đây
mục cha
commit
1b86374724
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      app/admin/controller/coupon/CouponDetailController.php

+ 6 - 0
app/admin/controller/coupon/CouponDetailController.php

@@ -126,6 +126,12 @@ class CouponDetailController extends Curd
                     $item['gettype'] = $couponDetailExtendJson['gettype'];
                 }
             }
+            if (!empty($item['coupon_detail_deadline_datetime'])){
+                $item['coupon_detail_deadline_datetime'] = date('Y/m/d H:i:s',strtotime($item['coupon_detail_deadline_datetime']));
+            }
+            if (!empty($item['coupon_detail_gain_datetime'])){
+                $item['coupon_detail_gain_datetime'] = date('Y/m/d H:i:s',strtotime($item['coupon_detail_gain_datetime']));
+            }
         }
 
         return $items;