1
This commit is contained in:
parent
635b9aa5c2
commit
1671bd7200
@ -71,16 +71,16 @@ class User extends BaseModel {
|
||||
return $rows ? $rows : null;
|
||||
}
|
||||
|
||||
public static function getVipLv($address){
|
||||
$row = SqlHelper::ormSelectOne(
|
||||
myself()->_getMarketMysql(''),
|
||||
't_staking_cec',
|
||||
array(
|
||||
'account_address' => $address
|
||||
)
|
||||
);
|
||||
return $row ? $row['vip_lv'] : 0;
|
||||
}
|
||||
// public static function getVipLv($address){
|
||||
// $row = SqlHelper::ormSelectOne(
|
||||
// myself()->_getMarketMysql(''),
|
||||
// 't_staking_cec',
|
||||
// array(
|
||||
// 'account_address' => $address
|
||||
// )
|
||||
// );
|
||||
// return $row ? $row['vip_lv'] : 0;
|
||||
// }
|
||||
|
||||
public static function show($row)
|
||||
{
|
||||
@ -141,7 +141,7 @@ class User extends BaseModel {
|
||||
'honor_info' => $honorInfo,
|
||||
'account_lucky' => $lucky,
|
||||
'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'],
|
||||
'account_lucky' => $lucky,
|
||||
'chest_rate' => $rate,
|
||||
'vip_lv' => self::getVipLv($row['address']),
|
||||
// 'vip_lv' => self::getVipLv($row['address']),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user