update config base type cpone
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user