|
@@ -6,6 +6,10 @@ class Info
|
|
|
public function dec($id, $cash)
|
|
|
{
|
|
|
$state = Dever::db('info', 'seller')->update($id, array('cash' => array('-', $cash)));
|
|
|
+ $log['state'] = $state;
|
|
|
+ $log['id'] = $id;
|
|
|
+ $log['cash'] = $cash;
|
|
|
+ Dever::log($log, 'dec');
|
|
|
return $state;
|
|
|
}
|
|
|
|
|
@@ -13,6 +17,10 @@ class Info
|
|
|
public function inc($id, $cash)
|
|
|
{
|
|
|
$state = Dever::db('info', 'seller')->update($id, array('cash' => array('+', $cash)));
|
|
|
+ $log['state'] = $state;
|
|
|
+ $log['id'] = $id;
|
|
|
+ $log['cash'] = $cash;
|
|
|
+ Dever::log($log, 'inc');
|
|
|
return $state;
|
|
|
}
|
|
|
|