From 4ea9064fee0baf8eddd33cafebe8cc70ed433737 Mon Sep 17 00:00:00 2001 From: weizong song Date: Fri, 30 Jun 2023 09:55:52 +0800 Subject: [PATCH] up --- app/Models/OrderItems.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/OrderItems.php b/app/Models/OrderItems.php index fc2b596..1ecfbd5 100755 --- a/app/Models/OrderItems.php +++ b/app/Models/OrderItems.php @@ -20,7 +20,8 @@ class OrderItems extends SoftDeletesModel return "未服务"; } if ($this->paid_at) { - return "已扣款,下月结工资"; + $next_month = date("m", strtotime("+1 month", strtotime($this->paid_at))); + return "已扣款,{$next_month}月结工资"; } else { return "未扣款"; }