wuggemail@foxmail.com 3 月之前
父節點
當前提交
b289573ef6
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();
             $save=$product->save();
             if(!$save) throw new \Exception('库存修改失败');
             if(!$save) throw new \Exception('库存修改失败');
         }else{
         }else{
-            throw new \Exception('库存不足');
+            throw new \Exception('商品库存未找到'.$product_id);
         }
         }
         return true;
         return true;
     }
     }