Update: 2026-07-05 18:46:09
This commit is contained in:
@@ -75,7 +75,7 @@ try {
|
|||||||
|
|
||||||
// 3. Automated Campaigns / Surge Tracking (If applicable in logs)
|
// 3. Automated Campaigns / Surge Tracking (If applicable in logs)
|
||||||
$sqlCampaigns = "SELECT COUNT(*) as count FROM marketing_campaigns_log
|
$sqlCampaigns = "SELECT COUNT(*) as count FROM marketing_campaigns_log
|
||||||
WHERE JSON_EXTRACT(target_criteria, '$.country_code') = :country
|
WHERE country_code = :country
|
||||||
AND sent_at >= DATE_SUB(NOW(), INTERVAL 7 DAY)";
|
AND sent_at >= DATE_SUB(NOW(), INTERVAL 7 DAY)";
|
||||||
$stmtCampaigns = $con->prepare($sqlCampaigns);
|
$stmtCampaigns = $con->prepare($sqlCampaigns);
|
||||||
$stmtCampaigns->execute([':country' => $countryCode]);
|
$stmtCampaigns->execute([':country' => $countryCode]);
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ class SiroGeminiService {
|
|||||||
/**
|
/**
|
||||||
* Helper: يُرسل prompt لـ Gemini ويُعيد JSON مُفكَّك
|
* Helper: يُرسل prompt لـ Gemini ويُعيد JSON مُفكَّك
|
||||||
*/
|
*/
|
||||||
private function callGemini(string $prompt, string $model): ?array {
|
public function callGemini(string $prompt, string $model): ?array {
|
||||||
$apiUrl = $this->baseUrl . $model . ":generateContent?key=" . $this->apiKey;
|
$apiUrl = $this->baseUrl . $model . ":generateContent?key=" . $this->apiKey;
|
||||||
|
|
||||||
$payload = [
|
$payload = [
|
||||||
|
|||||||
Reference in New Issue
Block a user