This commit is contained in:
hujiabin 2023-09-13 13:17:15 +08:00
parent f52ccf60c5
commit 92f096f490
2 changed files with 4 additions and 4 deletions

View File

@ -292,9 +292,9 @@ class User extends BaseModel {
'account_id' => $row['account_id'],
'address' => $row['address'],
'name' => $row['name'],
// 'sex' => $row['sex'],
// 'head_id' => $row['head_id'],
// 'head_frame' => $row['head_frame'],
'sex' => $row['sex'],
'head_id' => $row['head_id'],
'head_frame' => $row['head_frame'],
'level' => $row['level'],
'exp' => $row['exp'],
'rank' => $row['rank'],

View File

@ -9,7 +9,7 @@ class NumberService extends BaseService
public static function ceilEx($number , $decimals) {
$intPart = intval($number);
$floatPart = $number - $intPart;
$finallyFloatPart = ceil($floatPart * pow(10,$decimals)) / pow(10,$decimals);
$finallyFloatPart = ceil(strval($floatPart * pow(10,$decimals))) / pow(10,$decimals);
return $intPart + $finallyFloatPart;
}
}