wuggemail@foxmail.com hai 3 meses
pai
achega
ec105435b4
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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("操作成功");
     }
 
 }