rabin 9 months ago
parent
commit
50f8bb7a13
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/dai/seller/lib/Manage.php

+ 1 - 2
src/dai/seller/lib/Manage.php

@@ -174,8 +174,7 @@ class Manage extends Auth
     public function operCash($data)
     {
         if ($data['type'] == 1) {
-            Dever::load('info', 'seller')->inc($data['seller_id'], $data['cash']);
-            Dever::db('info', 'seller')->update($id, array('p_cash' => array('+', $cash)));
+            Dever::db('info', 'seller')->update($data['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'];