gorden 1 dienu atpakaļ
vecāks
revīzija
225ac1585d

+ 3 - 3
app/admin/controller/coupon/CardController.php

@@ -129,7 +129,7 @@ class CardController extends Curd
                 if ($item['main']['card_main_valid_mode'] == 'LONG') {
                     $item['valid_datetime'] = '长期有效';
                 } else if (!empty($item['card_deadline_datetime'])) {
-                    $item['valid_datetime'] = date('Y/m/d H:i:s', strtotime($item['card_assign_datetime'])) . '-' . date('Y/m/d H:i:s', strtotime($item['card_deadline_datetime']));
+                    $item['valid_datetime'] = date('Y/m/d', strtotime($item['card_assign_datetime'])) . '-' . date('Y/m/d', strtotime($item['card_deadline_datetime']));
                 }
             }
             $cardExtendJson = [];
@@ -184,7 +184,7 @@ class CardController extends Curd
             } elseif (!empty($info['main']['card_main_valid_mode']) && $info['main']['card_main_valid_mode'] == 'DAYS') {
                 $info['valid_term'] = $info['main']['card_main_valid_days'] . '天';
             } elseif (!empty($info['main']['card_main_valid_mode']) && $info['main']['card_main_valid_mode'] == 'DATE') {
-                $info['valid_term'] = date('Y/m/d H:i:s', strtotime($info['main']['card_main_valid_begin'])) . '-' . date('Y/m/d H:i:s', strtotime($info['main']['card_main_valid_end']));
+                $info['valid_term'] = date('Y/m/d', strtotime($info['main']['card_main_valid_begin'])) . '-' . date('Y/m/d', strtotime($info['main']['card_main_valid_end']));
             }
             if (!empty($info['main']['card_main_json'])) {
                 $cardMainJson = json_decode($info['main']['card_main_json'], true);
@@ -195,7 +195,7 @@ class CardController extends Curd
                 if ($info['main']['card_main_valid_mode'] == 'LONG') {
                     $info['valid_datetime'] = '长期有效';
                 } else if (!empty($info['card_deadline_datetime'])) {
-                    $info['valid_datetime'] = date('Y/m/d H:i:s', strtotime($info['card_assign_datetime'])) . '-' . date('Y/m/d H:i:s', strtotime($info['card_deadline_datetime']));
+                    $info['valid_datetime'] = date('Y/m/d', strtotime($info['card_assign_datetime'])) . '-' . date('Y/m/d', strtotime($info['card_deadline_datetime']));
                 }
             }
         }

+ 1 - 1
app/admin/controller/coupon/CardMainController.php

@@ -103,7 +103,7 @@ class CardMainController extends Curd
             } elseif ($item['card_main_valid_mode'] == 'LONG') {
                 $item['valid_term'] = '长期有效';
             } elseif ($item['card_main_valid_mode'] == 'DATE') {
-                $item['valid_term'] = date('Y/m/d H:i:s', strtotime($item['card_main_valid_begin'])) . '-' . date('Y/m/d H:i:s', strtotime($item['card_main_valid_end']));
+                $item['valid_term'] = date('Y/m/d', strtotime($item['card_main_valid_begin'])) . '-' . date('Y/m/d', strtotime($item['card_main_valid_end']));
             }
         }