wuggemail@foxmail.com hace 3 meses
padre
commit
b289573ef6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/cxinv/model/ProductStock.php

+ 1 - 1
app/cxinv/model/ProductStock.php

@@ -47,7 +47,7 @@ class ProductStock extends Base
             $save=$product->save();
             if(!$save) throw new \Exception('库存修改失败');
         }else{
-            throw new \Exception('库存不足');
+            throw new \Exception('商品库存未找到'.$product_id);
         }
         return true;
     }