From 51b1694d7a720373974e4dc951c3672e83a29e35 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Sat, 11 Oct 2025 13:01:31 +0800 Subject: [PATCH] no message --- resources/views/tabler/user/index.tpl | 2 +- src/Controllers/UserController.php | 2 +- src/Models/User.php | 6 +++--- src/Services/Cron.php | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/views/tabler/user/index.tpl b/resources/views/tabler/user/index.tpl index 587029ae5..85851d05a 100755 --- a/resources/views/tabler/user/index.tpl +++ b/resources/views/tabler/user/index.tpl @@ -34,7 +34,7 @@
{$user->vipInfo->name} -
累计支付:¥ {$user->money_total}
+
累计支付:¥ {$user->total_pay}
diff --git a/src/Controllers/UserController.php b/src/Controllers/UserController.php index 577e865f7..70885e998 100755 --- a/src/Controllers/UserController.php +++ b/src/Controllers/UserController.php @@ -62,7 +62,7 @@ final class UserController extends BaseController // } $this->user->classStr = Maps::classStr($this->user->class); - $this->user->vipInfo = ModelVipMap::infoByAmount($this->user->money_total); + $this->user->vipInfo = ModelVipMap::infoByAmount($this->user->total_pay); return $response->write( $this->view() diff --git a/src/Models/User.php b/src/Models/User.php index c66813c0d..2ab08ef90 100755 --- a/src/Models/User.php +++ b/src/Models/User.php @@ -342,15 +342,15 @@ final class User extends Model public function getVipRate() { - $iRate = (new VipMap())->rateByAmount($this->money_total); + $iRate = (new VipMap())->rateByAmount($this->total_pay); return $iRate; } public function getVipInfo() { -// tomd($this->money_total, 1); - $aInfo = (new VipMap())->infoByAmount($this->money_total); +// tomd($this->total_pay, 1); + $aInfo = (new VipMap())->infoByAmount($this->total_pay); return $aInfo; } diff --git a/src/Services/Cron.php b/src/Services/Cron.php index 6f1d912c8..f1c6c0a45 100755 --- a/src/Services/Cron.php +++ b/src/Services/Cron.php @@ -857,7 +857,7 @@ final class Cron $iAmount = $invoice->price; $oUser->money = $iUserMoneyNew; - $oUser->money_total += $iPayAmount; + $oUser->total_pay += $iPayAmount; $oUser->save(); (new UserMoneyLog())->add( @@ -874,7 +874,7 @@ final class Cron self::_helper_log("订单".$oOrder->id."钱包充值到账"); } else if ($oUser->class < $iPayClass) { // 当前无套餐,直接进激活队列 - $oUser->money_total += $iPayAmount; + $oUser->total_pay += $iPayAmount; $oUser->save(); $oOrder->status = "pending"; @@ -886,7 +886,7 @@ final class Cron self::_helper_log("订单".$oOrder->id."进入到激活队列"); } else { // 当前有套餐,进入pending表 - $oUser->money_total += $iPayAmount; + $oUser->total_pay += $iPayAmount; $oUser->save(); $oOrder->status = "pending";