This commit is contained in:
hujiabin 2024-09-20 10:57:52 +08:00
parent 635b9aa5c2
commit 1671bd7200

View File

@ -71,16 +71,16 @@ class User extends BaseModel {
return $rows ? $rows : null; return $rows ? $rows : null;
} }
public static function getVipLv($address){ // public static function getVipLv($address){
$row = SqlHelper::ormSelectOne( // $row = SqlHelper::ormSelectOne(
myself()->_getMarketMysql(''), // myself()->_getMarketMysql(''),
't_staking_cec', // 't_staking_cec',
array( // array(
'account_address' => $address // 'account_address' => $address
) // )
); // );
return $row ? $row['vip_lv'] : 0; // return $row ? $row['vip_lv'] : 0;
} // }
public static function show($row) public static function show($row)
{ {
@ -141,7 +141,7 @@ class User extends BaseModel {
'honor_info' => $honorInfo, 'honor_info' => $honorInfo,
'account_lucky' => $lucky, 'account_lucky' => $lucky,
'chest_rate' => $rate, 'chest_rate' => $rate,
'vip_lv' => self::getVipLv($row['address']), // 'vip_lv' => self::getVipLv($row['address']),
); );
} }
@ -207,7 +207,7 @@ class User extends BaseModel {
'last_login_time' => $row['last_login_time'], 'last_login_time' => $row['last_login_time'],
'account_lucky' => $lucky, 'account_lucky' => $lucky,
'chest_rate' => $rate, 'chest_rate' => $rate,
'vip_lv' => self::getVipLv($row['address']), // 'vip_lv' => self::getVipLv($row['address']),
); );
} }