|
@@ -174,7 +174,7 @@ class Manage extends Auth
|
|
|
public function operCash($data)
|
|
|
{
|
|
|
if ($data['type'] == 1) {
|
|
|
- Dever::db('info', 'seller')->update($data['id'], array('cash' => array('+', $data['cash']), 'p_cash' => array('+', $data['cash'])));
|
|
|
+ Dever::db('info', 'seller')->update($data['seller_id'], array('cash' => array('+', $data['cash']), 'p_cash' => array('+', $data['cash'])));
|
|
|
} elseif ($data['type'] == 2) {
|
|
|
Dever::load('info', 'seller')->dec($data['seller_id'], $data['cash']);
|
|
|
$data['cash'] = -1*$data['cash'];
|