wuggemail@foxmail.com 3 meses atrás
pai
commit
ec105435b4
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      app/cxinv/controller/Adjust.php

+ 2 - 0
app/cxinv/controller/Adjust.php

@@ -88,10 +88,12 @@ class Adjust extends Base
                 $key=(new TzProduct)->saveAll($params['idArr']);
                 if($key->isEmpty()) throw new \Exception("保存商品信息失败");
             }
+            $this->model->commit();
         }catch (\Exception $e){
             $this->model->rollback();
             return error($e->getMessage());
         }
+        return success("操作成功");
     }
 
 }