Your Name 2 years ago
parent
commit
7a0d21290b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/mshop/src/Buy.php

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

@@ -127,7 +127,7 @@ class Buy extends Core
                     $this->data['wallet']['price'] = $this->data['price'];
                     $this->data['price'] = 0;
                     #余额
-                    $this->data['wallet']['yue'] = $this->shop['price'] - $this->data['price'];
+                    $this->data['wallet']['yue'] = round($this->shop['price'] - $this->data['price'],2);
                 } else {
                     $this->data['wallet']['type'] = 2;
                     $this->data['wallet']['price'] = $this->shop['price'];
@@ -138,7 +138,6 @@ class Buy extends Core
         }else{
             $this->data['wallet']['yue'] = $this->shop['price'];
         }
-
         $this->data['name'] = implode(',', $this->data['name']);
     }