|
@@ -129,7 +129,7 @@ class CardController extends Curd
|
|
if ($item['main']['card_main_valid_mode'] == 'LONG') {
|
|
if ($item['main']['card_main_valid_mode'] == 'LONG') {
|
|
$item['valid_datetime'] = '长期有效';
|
|
$item['valid_datetime'] = '长期有效';
|
|
} else if (!empty($item['card_deadline_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 = [];
|
|
$cardExtendJson = [];
|
|
@@ -184,7 +184,7 @@ class CardController extends Curd
|
|
} elseif (!empty($info['main']['card_main_valid_mode']) && $info['main']['card_main_valid_mode'] == 'DAYS') {
|
|
} elseif (!empty($info['main']['card_main_valid_mode']) && $info['main']['card_main_valid_mode'] == 'DAYS') {
|
|
$info['valid_term'] = $info['main']['card_main_valid_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') {
|
|
} 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'])) {
|
|
if (!empty($info['main']['card_main_json'])) {
|
|
$cardMainJson = json_decode($info['main']['card_main_json'], true);
|
|
$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') {
|
|
if ($info['main']['card_main_valid_mode'] == 'LONG') {
|
|
$info['valid_datetime'] = '长期有效';
|
|
$info['valid_datetime'] = '长期有效';
|
|
} else if (!empty($info['card_deadline_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']));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|