浏览代码

fix: 🚑️ ChargeServer Command

IceToast 3 年之前
父节点
当前提交
570b0b014f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/ChargeServers.php

+ 1 - 1
app/Console/Commands/ChargeServers.php

@@ -65,7 +65,7 @@ class ChargeServers extends Command
                         $newBillingDate = Carbon::parse($server->last_billed)->addMonth();
                         break;
                     case 'weekly':
-                        $newBillingDate = Carbon::parse($server->last_billed)->addYear();
+                        $newBillingDate = Carbon::parse($server->last_billed)->addWeek();
                         break;
                     case 'daily':
                         $newBillingDate = Carbon::parse($server->last_billed)->addDay();