Browse Source

1223

master
wanghongjun 2 years ago
parent
commit
6351c84603
  1. 2
      app/controller/Setting.php
  2. 1
      app/model/ZoneGoods.php

2
app/controller/Setting.php

@ -91,7 +91,7 @@ class Setting extends BaseController
try { try {
validate()->rule([ validate()->rule([
'rate' => 'require|float|between:0.01,500', 'rate|概率' => 'require|float|between:0.01,500',
])->check($param); ])->check($param);
SettingModel::settingSave('amount_probability',round($param['rate'] / 100,4)); SettingModel::settingSave('amount_probability',round($param['rate'] / 100,4));

1
app/model/ZoneGoods.php

@ -23,6 +23,7 @@ class ZoneGoods extends \think\Model
} }
$item['price'] = round($item['price']); $item['price'] = round($item['price']);
#$item['max_awards_amount'] = PinyinNumber::getChinese($item['max_awards_amount'],'元'); #$item['max_awards_amount'] = PinyinNumber::getChinese($item['max_awards_amount'],'元');
$item['max_awards_amount'] = round($item['max_awards_amount']);
if ($is_manage) { if ($is_manage) {
unset($item['status']); unset($item['status']);
} }

Loading…
Cancel
Save