dever 3 年之前
父節點
當前提交
0f4b9fad9b
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 0
      app/cash/lib/Order.php
  2. 2 1
      app/mshop/lib/Buy.php

+ 1 - 0
app/cash/lib/Order.php

@@ -69,6 +69,7 @@ class Order
             if ($jstype == 2) {
                 $update['cash'] = -1*$update['cash'];
                 $update['p_cash'] = -1*$update['p_cash'];
+                $update['num'] = -1*$update['num'];
             }
         
         	$update['order_num'] = $this->getOrderId();

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

@@ -551,7 +551,8 @@ class Buy
     {
         $id = Dever::input('order_id');
 
-        $type = Dever::input('search_option_type', 1);
+        $type = 1;
+        //$type = Dever::input('search_option_type', 1);
         $type = Dever::input('type', $type);
 
         $cash_type = Dever::input('cash', 1);