rabin 2 년 전
부모
커밋
44f3d3ad05
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/mshop/src/Buy.php

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

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