rabin 2 年之前
父節點
當前提交
3701cc4bbe
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/mshop/src/Buy.php

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

@@ -107,8 +107,8 @@ class Buy extends Core
                     $this->data['method']['price'] = $this->data['price'];
                     $this->data['price'] = 0;
                     #余额
-                    $this->data['method']['yue'] = $this->shop['price'] - $this->data['price']
-                }else {
+                    $this->data['method']['yue'] = $this->shop['price'] - $this->data['price'];
+                } else {
                     $this->data['method']['type'] = 2;
                     $this->data['method']['price'] = $this->shop['price'];
                     $this->data['price'] = $this->data['price'] - $this->shop['price'];