修改获取服务包当前月时间区间
This commit is contained in:
parent
af63355685
commit
62f86a1397
@ -1138,15 +1138,15 @@ class OrderServicePackageService extends BaseService
|
|||||||
|
|
||||||
$days = (int)$month_time * 30;
|
$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 = array();
|
||||||
$result['current_month_start_date'] = $current_month_start_date;
|
$result['current_month_start_date'] = date('Y年m月d日 H时i分', strtotime($current_month_start_date));
|
||||||
$result['current_month_finish_date'] = $current_month_finish_date;
|
$result['current_month_finish_date'] = date('Y年m月d日 H时i分', strtotime($current_month_finish_date));
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user