A00006 added

This commit is contained in:
CHIEFSOFT\ameye
2025-10-11 11:51:43 -04:00
parent 2adfd1d85a
commit 1b37af20d8
3 changed files with 49 additions and 1 deletions
+8 -1
View File
@@ -669,7 +669,10 @@ class Provision extends BaseController
{
$portF = 0;
try {
$mysql = "SELECT max(provision_port) AS max_port FROM members_products WHERE product_id = '" . $productId . "'";
$mysql = "SELECT max(provision_port) AS max_port
FROM members_products
WHERE product_id = '" . $productId . "'";
$query = $this->db->query($mysql);
$maxItem = $query->getResult()[0]->max_port;
//var_dump($maxItem);
@@ -690,6 +693,9 @@ class Provision extends BaseController
case "A000003":
$maxItem = 6600;
break;
case "A000006":
$maxItem = 22000;
break;
}
} else {
$maxItem = $maxItem + 1;
@@ -714,6 +720,7 @@ class Provision extends BaseController
$primaryServer = $_ENV['DEPLOYMENT_SERVER_2'];
break;
case "A000005":
case "A000006":
$primaryServer = $_ENV['DEPLOYMENT_SERVER_3'];
break;
}