|
@@ -4801,6 +4801,11 @@ class Database
|
|
|
|
|
|
private function checkSpec($config)
|
|
|
{
|
|
|
+ $type = Dever::input('update_type');
|
|
|
+ if ($type && isset($type[0]) && $type[0] > 10) {
|
|
|
+ Dever::setInput('update_spec_type', -1);
|
|
|
+ return;
|
|
|
+ }
|
|
|
$spec_type = Dever::input('update_spec_type');
|
|
|
if ($spec_type == 1) {
|
|
|
$sku = Dever::input('skus');
|
|
@@ -4821,7 +4826,7 @@ class Database
|
|
|
private function spec($id, $config)
|
|
|
{
|
|
|
$spec_type = Dever::input('update_spec_type');
|
|
|
- if ($spec_type) {
|
|
|
+ if ($spec_type && $spec_type > 1) {
|
|
|
if (isset($config['manage']['sku'])) {
|
|
|
$spec_table = $config['manage']['sku']['spec'];
|
|
|
$sku_table = $config['manage']['sku']['sku'];
|