Browse Source

调试

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

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

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


+ 0
- 2
addons/unishop/model/Product.php View File

@@ -59,8 +59,6 @@ class Product extends Model
'images',
'specList',
'specTableList',
"stock",
"look"
];

/**


Loading…
Cancel
Save