作者 王智

修改

@@ -285,8 +285,8 @@ class Update extends Api @@ -285,8 +285,8 @@ class Update extends Api
285 if ($Parmas['total'] < 199) { 285 if ($Parmas['total'] < 199) {
286 $this->error('订单金额小于199元,无法抵扣'); 286 $this->error('订单金额小于199元,无法抵扣');
287 } 287 }
288 - if ($WaterNum / 100 < 100) {  
289 - $this->error('氧气泡泡不足100元,无法抵扣'); 288 + if ($WaterNum < 100) {
  289 + $this->error('氧气泡泡不足100,无法抵扣');
290 } 290 }
291 //计算总价20% 291 //计算总价20%
292 if (($WaterNum / 100 > $Parmas['total'] * 0.2) || ($WaterNum / 100 == $Parmas['total'] * 0.2)) { 292 if (($WaterNum / 100 > $Parmas['total'] * 0.2) || ($WaterNum / 100 == $Parmas['total'] * 0.2)) {