Browse Source

异常处理

yijia
v-Brocloni 3 years ago
parent
commit
1e1a4723d9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      application/admin/controller/unishop/Order.php

+ 2
- 1
application/admin/controller/unishop/Order.php View File

@@ -716,7 +716,8 @@ class Order extends Backend
$product = new \app\admin\model\unishop\Product();
foreach ($list as $val){
try {
$product->where(["id" => $val['product_id']])->setInc("stock", $val["number"])->setInc("real_sales", -$val["number"]);
$product->where(["id" => $val['product_id']])->setInc("stock", $val["number"]);
$product->where(["id" => $val['product_id']])->setInc("real_sales", -$val["number"]);
} catch (Exception $e) {
}
}


Loading…
Cancel
Save