diff --git a/app/Services/OrderServicePackageService.php b/app/Services/OrderServicePackageService.php index caad73e..4db976c 100644 --- a/app/Services/OrderServicePackageService.php +++ b/app/Services/OrderServicePackageService.php @@ -1138,15 +1138,15 @@ class OrderServicePackageService extends BaseService $days = (int)$month_time * 30; - // 当前所属月开始时间 - $current_month_finish_date = date('Y年m月d日 H时i分', strtotime($start_time . " +$days days")); - // 当前所属月结束时间 - $current_month_start_date = date('Y年m月d日 H时i分', strtotime($current_month_finish_date . "-30 days")); + $current_month_finish_date = date('Y-m-d H:i:s', strtotime($start_time . " +$days days")); + + // 当前所属月开始时间 + $current_month_start_date = date('Y-m-d H:i:s', strtotime($current_month_finish_date . "-30 days")); $result = array(); - $result['current_month_start_date'] = $current_month_start_date; - $result['current_month_finish_date'] = $current_month_finish_date; + $result['current_month_start_date'] = date('Y年m月d日 H时i分', strtotime($current_month_start_date)); + $result['current_month_finish_date'] = date('Y年m月d日 H时i分', strtotime($current_month_finish_date)); return $result; }