1
This commit is contained in:
parent
f52ccf60c5
commit
92f096f490
@ -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'],
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user