|
@@ -72,7 +72,9 @@ class Set
|
|
|
Dever::db('store/goods_sku')->update(array('where_id' => $sku_info['id'], 'state' => 2));
|
|
|
}
|
|
|
unset($w['sku_id']);
|
|
|
- $total = Dever::db('store/goods_sku')->total($w);
|
|
|
+ $t = $w;
|
|
|
+ $t['state'] = 1;
|
|
|
+ $total = Dever::db('store/goods_sku')->total($t);
|
|
|
if ($total <= 0) {
|
|
|
$info = Dever::db('store/goods')->one($w);
|
|
|
if ($info) {
|