1234567891011121314151617181920212223242526 |
- <?php
- namespace Scm_product\Lib;
- use Dever;
- class Stock
- {
- # 更新库存
- public function update($id, $name, $data)
- {
- $table = Dever::input('table');
- $type = Dever::input('type');
- $info = Dever::db($table)->find($id);
- if ($info && $info['status'] == 1) {
- $audit = Dever::param('audit', $data);
- if ($audit == 2) {
- # 审核通过
- } else {
- # 审核未通过
-
- }
- }
- }
- }
|