Your Name 2 년 전
부모
커밋
df3f1826e9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
                 }
             }