no message

This commit is contained in:
hellcat 2025-10-11 13:01:31 +08:00
parent 28ea42799f
commit 51b1694d7a
4 changed files with 8 additions and 8 deletions

View File

@ -34,7 +34,7 @@
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<span class="h3 font-weight-bold mb-0">{$user->vipInfo->name}</span> <span class="h3 font-weight-bold mb-0">{$user->vipInfo->name}</span>
<h5 class="card-title text-uppercase text-muted mb-0 font-small-4">累计支付:¥ {$user->money_total}</h5> <h5 class="card-title text-uppercase text-muted mb-0 font-small-4">累计支付:¥ {$user->total_pay}</h5>
</div> </div>
<div class="avatar bg-rgba-primary p-50 m-0"> <div class="avatar bg-rgba-primary p-50 m-0">
<div class="avatar-content"> <div class="avatar-content">

View File

@ -62,7 +62,7 @@ final class UserController extends BaseController
// } // }
$this->user->classStr = Maps::classStr($this->user->class); $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( return $response->write(
$this->view() $this->view()

View File

@ -342,15 +342,15 @@ final class User extends Model
public function getVipRate() public function getVipRate()
{ {
$iRate = (new VipMap())->rateByAmount($this->money_total); $iRate = (new VipMap())->rateByAmount($this->total_pay);
return $iRate; return $iRate;
} }
public function getVipInfo() public function getVipInfo()
{ {
// tomd($this->money_total, 1); // tomd($this->total_pay, 1);
$aInfo = (new VipMap())->infoByAmount($this->money_total); $aInfo = (new VipMap())->infoByAmount($this->total_pay);
return $aInfo; return $aInfo;
} }

View File

@ -857,7 +857,7 @@ final class Cron
$iAmount = $invoice->price; $iAmount = $invoice->price;
$oUser->money = $iUserMoneyNew; $oUser->money = $iUserMoneyNew;
$oUser->money_total += $iPayAmount; $oUser->total_pay += $iPayAmount;
$oUser->save(); $oUser->save();
(new UserMoneyLog())->add( (new UserMoneyLog())->add(
@ -874,7 +874,7 @@ final class Cron
self::_helper_log("订单".$oOrder->id."钱包充值到账"); self::_helper_log("订单".$oOrder->id."钱包充值到账");
} else if ($oUser->class < $iPayClass) { // 当前无套餐,直接进激活队列 } else if ($oUser->class < $iPayClass) { // 当前无套餐,直接进激活队列
$oUser->money_total += $iPayAmount; $oUser->total_pay += $iPayAmount;
$oUser->save(); $oUser->save();
$oOrder->status = "pending"; $oOrder->status = "pending";
@ -886,7 +886,7 @@ final class Cron
self::_helper_log("订单".$oOrder->id."进入到激活队列"); self::_helper_log("订单".$oOrder->id."进入到激活队列");
} else { // 当前有套餐进入pending表 } else { // 当前有套餐进入pending表
$oUser->money_total += $iPayAmount; $oUser->total_pay += $iPayAmount;
$oUser->save(); $oUser->save();
$oOrder->status = "pending"; $oOrder->status = "pending";