Your Name 2 年之前
父節點
當前提交
4637c11d95
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 1 0
      app/shop/database/buy_order.php
  2. 5 1
      app/shop/lib/Record.php

+ 1 - 0
app/shop/database/buy_order.php

@@ -436,6 +436,7 @@ $struct = array
         'default'   => '',
         'match'     => 'is_numeric',
         'desc'      => '',
+        'search'    => 'date',
     ),
 
     'operdate'     => array

+ 5 - 1
app/shop/lib/Record.php

@@ -40,7 +40,11 @@ class Record
     	$ids = Dever::db('shop/record')->insert($where);
 
         $update['where_id'] = $shop_id;
-        $update['set_price'] = $yue;
+        if ($type == 3 || $type == 8){
+            $update['set_price'] = $price;
+        } elseif ($type == 4){
+            $update['set_price'] = -1*$price;
+        }
         Dever::db('shop/info')->upCash($update);
     	return $ids;
     }