Browse Source

修复优惠券接口价格精度问题

lang 3 năm trước cách đây
mục cha
commit
b986a74691
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      Controller/CloudStorage.py

+ 0 - 2
Controller/CloudStorage.py

@@ -1185,10 +1185,8 @@ class CloudStorageView(View):
             coupon_discount = Decimal(couponQuery[0]['coupon_discount'])
             if couponQuery[0]['type'] == 1:  #折扣
                 price = coupon_discount/10 * price
-                return HttpResponse(price)
             elif couponQuery[0]['type'] == 2:  #抵扣
                 price = price - coupon_discount
-                return HttpResponse(price)
             if price < 0:
                 return response.json(10049)
             couponObj.update(use_status=1)