no message

This commit is contained in:
hellcat 2025-10-10 17:11:15 +08:00
parent bcca882b98
commit 6829432614
3 changed files with 3 additions and 2 deletions

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->total_pay); $this->user->vipInfo = ModelVipMap::infoByAmount($this->user->money_total);
return $response->write( return $response->write(
$this->view() $this->view()

View File

@ -349,6 +349,7 @@ final class User extends Model
public function getVipInfo() public function getVipInfo()
{ {
// tomd($this->money_total, 1);
$aInfo = (new VipMap())->infoByAmount($this->money_total); $aInfo = (new VipMap())->infoByAmount($this->money_total);
return $aInfo; return $aInfo;

View File

@ -22,7 +22,7 @@ class VipMap extends Model
public static function infoByAmount($iAmount = 0) public static function infoByAmount($iAmount = 0)
{ {
$iAmount = $iAmount ?? 0; $iAmount = $iAmount ?? 0;
// tomd($iAmount, 1);
$oSelf = self::where("amount", "<=", $iAmount)->orderBy("amount", "desc")->first(); $oSelf = self::where("amount", "<=", $iAmount)->orderBy("amount", "desc")->first();
return $oSelf; return $oSelf;