Stock.php 479 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Scm_product\Lib;
  3. use Dever;
  4. class Stock
  5. {
  6. # 更新库存
  7. public function update($id, $name, $data)
  8. {
  9. $table = Dever::input('table');
  10. $type = Dever::input('type');
  11. $info = Dever::db($table)->find($id);
  12. if ($info && $info['status'] == 1) {
  13. $audit = Dever::param('audit', $data);
  14. if ($audit == 2) {
  15. # 审核通过
  16. } else {
  17. # 审核未通过
  18. }
  19. }
  20. }
  21. }