Browse Source

调试

yijia
v-Brocloni 3 years ago
parent
commit
3cc3d842d0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      addons/unishop/controller/Order.php

+ 1
- 0
addons/unishop/controller/Order.php View File

@@ -241,6 +241,7 @@ class Order extends Base
'order_id' => $order_id
])->select();
$list = collection($list)->toArray();
print_r($list);die;
$product = new \app\admin\model\unishop\Product();
foreach ($list as $val){
$product->where(["id"=>$val['product_id']])->setInc("stock",$val["number"])->setInc("real_sales",-$val["number"]);


Loading…
Cancel
Save