Your Name 2 years ago
parent
commit
df3f1826e9
1 changed files with 1 additions and 1 deletions
  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;
                 }
             }