|
@@ -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;
|
|
|
}
|