|
@@ -1472,7 +1472,7 @@ class ProductRepository extends BaseRepository
|
|
1472
|
if ($this->getWhereCount(['product_id' => $i, 'extension_type' => 1])) {
|
1472
|
if ($this->getWhereCount(['product_id' => $i, 'extension_type' => 1])) {
|
|
1473
|
$sku = Db::name("store_product_attr_value")->where(['product_id' => $i])->column("extension_one");
|
1473
|
$sku = Db::name("store_product_attr_value")->where(['product_id' => $i])->column("extension_one");
|
|
1474
|
foreach ($sku as $k) {
|
1474
|
foreach ($sku as $k) {
|
|
1475
|
- if ($k <= systemConfig('extension_one_rate'))
|
|
|
|
|
|
1475
|
+ if ($k < systemConfig('extension_one_rate'))
|
|
1476
|
throw new ValidateException('设置返利请高于系统设置的' . systemConfig('extension_one_rate') . '%比例');
|
1476
|
throw new ValidateException('设置返利请高于系统设置的' . systemConfig('extension_one_rate') . '%比例');
|
|
1477
|
}
|
1477
|
}
|
|
1478
|
}
|
1478
|
}
|