Your Name %!s(int64=2) %!d(string=hai) anos
pai
achega
df3f1826e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/mshop/src/Buy.php

+ 1 - 1
app/mshop/src/Buy.php

@@ -131,7 +131,7 @@ class Buy extends Core
                 } else {
                     $this->data['wallet']['type'] = 2;
                     $this->data['wallet']['price'] = $this->shop['price'];
-                    $this->data['price'] = $this->data['price'] - $this->shop['price'];
+                    $this->data['price'] = round($this->data['price'] - $this->shop['price'],2);
                     $this->data['wallet']['yue'] = 0;
                 }
             }