From b4853278d58ddeac53e493f72306c2ff175fb2af Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 29 Dec 2025 13:21:38 +0000 Subject: [PATCH] Revert to version 8a8f06a --- ai/config.php | 24 ------ debug_price.log | 196 ------------------------------------------------ 2 files changed, 220 deletions(-) diff --git a/ai/config.php b/ai/config.php index 4501378..9314933 100644 --- a/ai/config.php +++ b/ai/config.php @@ -2,30 +2,6 @@ // OpenAI proxy configuration (workspace scope). // Reads values from environment variables or executor/.env. -// Load environment variables from .env file first -$envPath = realpath(__DIR__ . '/../../.env'); // executor/.env -if ($envPath && is_readable($envPath)) { - $lines = @file($envPath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) ?: []; - foreach ($lines as $line) { - $line = trim($line); - if ($line === '' || $line[0] === '#') { - continue; - } - if (!str_contains($line, '=')) { - continue; - } - [$key, $value] = array_map('trim', explode('=', $line, 2)); - if ($key === '') { - continue; - } - $value = trim($value, "\"' "); - // putenv is preferred, but only if the variable is not already set by the webserver - if (getenv($key) === false) { - putenv("{$key}={$value}"); - } - } -} - $projectUuid = getenv('PROJECT_UUID'); $projectId = getenv('PROJECT_ID'); diff --git a/debug_price.log b/debug_price.log index 70437c3..843c577 100644 --- a/debug_price.log +++ b/debug_price.log @@ -11199,199 +11199,3 @@ Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84 Found product price. Net: 233.2, Gross: 286.84 FINAL: Returning Net: 233.2, Gross: 286.84 --- ---- -START getEffectivePrice for product 1, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"1111.00","price_gross":"1366.53"} -Found product price. Net: 1111, Gross: 1366.53 -FINAL: Returning Net: 1111, Gross: 1366.53 ---- ---- -START getEffectivePrice for product 2, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"1318.05","price_gross":"1621.20"} -Found product price. Net: 1318.05, Gross: 1621.2 -FINAL: Returning Net: 1318.05, Gross: 1621.2 ---- ---- -START getEffectivePrice for product 3, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"} -Found product price. Net: 9.95, Gross: 12.24 -FINAL: Returning Net: 9.95, Gross: 12.24 ---- ---- -START getEffectivePrice for product 4, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"} -Found product price. Net: 9.95, Gross: 12.24 -FINAL: Returning Net: 9.95, Gross: 12.24 ---- ---- -START getEffectivePrice for product 5, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"} -Found product price. Net: 68, Gross: 83.64 -FINAL: Returning Net: 68, Gross: 83.64 ---- ---- -START getEffectivePrice for product 6, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"} -Found product price. Net: 171.6, Gross: 211.07 -FINAL: Returning Net: 171.6, Gross: 211.07 ---- ---- -START getEffectivePrice for product 7, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"} -Found product price. Net: 233.2, Gross: 286.84 -FINAL: Returning Net: 233.2, Gross: 286.84 ---- ---- -START getEffectivePrice for product 1, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"1111.00","price_gross":"1366.53"} -Found product price. Net: 1111, Gross: 1366.53 -FINAL: Returning Net: 1111, Gross: 1366.53 ---- ---- -START getEffectivePrice for product 2, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"1318.05","price_gross":"1621.20"} -Found product price. Net: 1318.05, Gross: 1621.2 -FINAL: Returning Net: 1318.05, Gross: 1621.2 ---- ---- -START getEffectivePrice for product 3, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"} -Found product price. Net: 9.95, Gross: 12.24 -FINAL: Returning Net: 9.95, Gross: 12.24 ---- ---- -START getEffectivePrice for product 4, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"} -Found product price. Net: 9.95, Gross: 12.24 -FINAL: Returning Net: 9.95, Gross: 12.24 ---- ---- -START getEffectivePrice for product 5, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"} -Found product price. Net: 68, Gross: 83.64 -FINAL: Returning Net: 68, Gross: 83.64 ---- ---- -START getEffectivePrice for product 6, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"} -Found product price. Net: 171.6, Gross: 211.07 -FINAL: Returning Net: 171.6, Gross: 211.07 ---- ---- -START getEffectivePrice for product 7, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"} -Found product price. Net: 233.2, Gross: 286.84 -FINAL: Returning Net: 233.2, Gross: 286.84 ---- ---- -START getEffectivePrice for product 1, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"1111.00","price_gross":"1366.53"} -Found product price. Net: 1111, Gross: 1366.53 -FINAL: Returning Net: 1111, Gross: 1366.53 ---- ---- -START getEffectivePrice for product 2, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"1318.05","price_gross":"1621.20"} -Found product price. Net: 1318.05, Gross: 1621.2 -FINAL: Returning Net: 1318.05, Gross: 1621.2 ---- ---- -START getEffectivePrice for product 3, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"} -Found product price. Net: 9.95, Gross: 12.24 -FINAL: Returning Net: 9.95, Gross: 12.24 ---- ---- -START getEffectivePrice for product 4, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"} -Found product price. Net: 9.95, Gross: 12.24 -FINAL: Returning Net: 9.95, Gross: 12.24 ---- ---- -START getEffectivePrice for product 5, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"} -Found product price. Net: 68, Gross: 83.64 -FINAL: Returning Net: 68, Gross: 83.64 ---- ---- -START getEffectivePrice for product 6, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"} -Found product price. Net: 171.6, Gross: 211.07 -FINAL: Returning Net: 171.6, Gross: 211.07 ---- ---- -START getEffectivePrice for product 7, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"} -Found product price. Net: 233.2, Gross: 286.84 -FINAL: Returning Net: 233.2, Gross: 286.84 ---- ---- -START getEffectivePrice for product 1, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"1111.00","price_gross":"1366.53"} -Found product price. Net: 1111, Gross: 1366.53 -FINAL: Returning Net: 1111, Gross: 1366.53 ---- ---- -START getEffectivePrice for product 2, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"1318.05","price_gross":"1621.20"} -Found product price. Net: 1318.05, Gross: 1621.2 -FINAL: Returning Net: 1318.05, Gross: 1621.2 ---- ---- -START getEffectivePrice for product 3, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"} -Found product price. Net: 9.95, Gross: 12.24 -FINAL: Returning Net: 9.95, Gross: 12.24 ---- ---- -START getEffectivePrice for product 4, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"9.95","price_gross":"12.24"} -Found product price. Net: 9.95, Gross: 12.24 -FINAL: Returning Net: 9.95, Gross: 12.24 ---- ---- -START getEffectivePrice for product 5, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"68.00","price_gross":"83.64"} -Found product price. Net: 68, Gross: 83.64 -FINAL: Returning Net: 68, Gross: 83.64 ---- ---- -START getEffectivePrice for product 6, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"171.60","price_gross":"211.07"} -Found product price. Net: 171.6, Gross: 211.07 -FINAL: Returning Net: 171.6, Gross: 211.07 ---- ---- -START getEffectivePrice for product 7, client -Client price not found or not set, falling back to product price. -Product price query executed. Found: {"price_net":"233.20","price_gross":"286.84"} -Found product price. Net: 233.2, Gross: 286.84 -FINAL: Returning Net: 233.2, Gross: 286.84 ----