rabin 3 years ago
parent
commit
c2d72cdb48
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/agent/lib/Tool.php

+ 1 - 1
service/agent/lib/Tool.php

@@ -1037,7 +1037,7 @@ class Tool
             foreach ($data as $k => $v) {
                 $update = array();
                 $update['where_id'] = $v['mid'];
-                $num = $v['num'];
+                $num = -1*$v['num'];
                 if ($v['type'] == 1) {
                     $update['sell'] = $num;
                 } else {