no message
This commit is contained in:
parent
bcca882b98
commit
6829432614
@ -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()
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user