diff --git a/app/Models/OrderItems.php b/app/Models/OrderItems.php index 1ecfbd5..3a906f4 100755 --- a/app/Models/OrderItems.php +++ b/app/Models/OrderItems.php @@ -20,7 +20,7 @@ class OrderItems extends SoftDeletesModel return "未服务"; } if ($this->paid_at) { - $next_month = date("m", strtotime("+1 month", strtotime($this->paid_at))); + $next_month = date("m", strtotime("+1 month", strtotime(date("Y-m", strtotime($this->paid_at))))); return "已扣款,{$next_month}月结工资"; } else { return "未扣款";