From 02e37f28c43dfe96df866938fe57ad6f8848f469 Mon Sep 17 00:00:00 2001 From: Hanan Askarim Date: Wed, 24 Jun 2026 13:21:55 +0700 Subject: [PATCH] update config base type cpone --- application/controllers/ais/Transactionv4.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/ais/Transactionv4.php b/application/controllers/ais/Transactionv4.php index c4f0115..dab78f6 100644 --- a/application/controllers/ais/Transactionv4.php +++ b/application/controllers/ais/Transactionv4.php @@ -298,8 +298,8 @@ class Transactionv4 extends MY_Controller function get_config() { - $sql = "SELECT * FROM ais_config LIMIT 1"; - $qry = $this->db_onedev->query($sql); + $sql = "SELECT * FROM ais_config WHERE AisConfigBaseType = ? LIMIT 1"; + $qry = $this->db_onedev->query($sql, array('cpone')); $dt_config = $qry->row_array(); return $dt_config; } @@ -361,8 +361,8 @@ class Transactionv4 extends MY_Controller } else { // Update token $token = $result['data']['token'];; - $sql = "UPDATE ais_config SET AisConfigAuthToken = ? WHERE AisConfigID = 1"; - $qry = $this->db_onedev->query($sql, array($token)); + $sql = "UPDATE ais_config SET AisConfigAuthToken = ? WHERE AisConfigBaseType = ?"; + $qry = $this->db_onedev->query($sql, array($token, 'cpone')); //echo $this->db_onedev->last_query(); //exit; if (!$qry) {