update config base type cpone

This commit is contained in:
Hanan Askarim
2026-06-24 13:21:55 +07:00
parent 8c6068bb9f
commit 02e37f28c4

View File

@@ -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) {