no message
This commit is contained in:
parent
28ea42799f
commit
51b1694d7a
@ -34,7 +34,7 @@
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<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 class="avatar bg-rgba-primary p-50 m-0">
|
||||
<div class="avatar-content">
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user