|
|
|
@ -75,7 +75,7 @@ class Setting extends BaseController |
|
|
|
{ |
|
|
|
try { |
|
|
|
$probability = SettingModel::settingLoad('amount_probability') ?: '0.5'; |
|
|
|
return $this->renderSuccess('数据返回成功',['rate' => $probability * 100]); |
|
|
|
return $this->renderSuccess('数据返回成功',['rate' => round($probability * 100,4)]); |
|
|
|
} catch (\Exception $e) { |
|
|
|
return $this->renderError('操作失败'); |
|
|
|
} |
|
|
|
|