adjust the return response manner on link bank account
This commit is contained in:
parent
405ef7a69c
commit
4186d535ac
|
|
@ -89,6 +89,8 @@ defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest auto
|
||||||
*/
|
*/
|
||||||
define('WALLET_SERVICE_URL','https://test.ilink-app.com:8081');
|
define('WALLET_SERVICE_URL','https://test.ilink-app.com:8081');
|
||||||
define('WALLET_SERVICE_TOKEN','fywRtXSwEhHncwXaqn10wa9bJU9a63r2');
|
define('WALLET_SERVICE_TOKEN','fywRtXSwEhHncwXaqn10wa9bJU9a63r2');
|
||||||
|
// define('WALLET_SERVICE_URL','http://localhost:7082');
|
||||||
|
// define('WALLET_SERVICE_TOKEN','fywRtXSwEhHncwXaqn10wa9bJU9a63r2');
|
||||||
define('WALLET_SERVICE_EXTERNE_URL','https://test.ilink-app.com:8085');
|
define('WALLET_SERVICE_EXTERNE_URL','https://test.ilink-app.com:8085');
|
||||||
define('WALLET_SERVICE_EXTERNE_TOKEN','JeJMx6KNW1qo2h01rCVOLfX3f1nmcF2I');
|
define('WALLET_SERVICE_EXTERNE_TOKEN','JeJMx6KNW1qo2h01rCVOLfX3f1nmcF2I');
|
||||||
define('NOTIFICATION_SERVICE_URL','https://test.ilink-app.com:8083');
|
define('NOTIFICATION_SERVICE_URL','https://test.ilink-app.com:8083');
|
||||||
|
|
|
||||||
|
|
@ -2772,14 +2772,16 @@ class Gestion extends CI_Controller
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$this->db->trans_rollback();
|
$this->db->trans_rollback();
|
||||||
log_message('error', 'Erreur API Link ID '.$id.' : '.$result);
|
$result = json_decode($result, true);
|
||||||
|
$merror_message = isset($result['error']) ? $result['error'] : 'Unknown error';
|
||||||
|
log_message('error', 'Erreur API Link ID '.$id.' : '.$merror_message);
|
||||||
|
|
||||||
// ERREUR API
|
// ERREUR API
|
||||||
echo json_encode([
|
echo json_encode([
|
||||||
'success' => 'ok',
|
'success' => 'false',
|
||||||
'message' => 'Erreur API (' . $httpCode . ')',
|
'message' => 'Error : (' . $merror_message . ')'
|
||||||
'api_error' => $result
|
|
||||||
]);
|
]);
|
||||||
|
log_message('error', '------------- Erreur API lors de la validation du rattachement ID_transaction ' . $id . ' : ' . $merror_message);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -241,5 +241,18 @@ if (!function_exists('getStatusBadge')) {
|
||||||
return '<span class="label label-info" style="'.$style.'">'.$label.'</span>';
|
return '<span class="label label-info" style="'.$style.'">'.$label.'</span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!function_exists('truncateText')) {
|
||||||
|
function truncateText($text, $limit = 30, $end = '...')
|
||||||
|
{
|
||||||
|
// On vérifie si la longueur du texte dépasse la limite
|
||||||
|
if (mb_strlen($text) > $limit) {
|
||||||
|
// On coupe à 30 et on ajoute le suffixe
|
||||||
|
return mb_substr($text, 0, $limit) . $end;
|
||||||
|
}
|
||||||
|
// Si le texte est court, on le retourne tel quel
|
||||||
|
return $text;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@
|
||||||
<td class="text-center"><?= $a->birth_country ?></td>
|
<td class="text-center"><?= $a->birth_country ?></td>
|
||||||
<td class="text-center"><?= ucfirst($a->marital_status) ?></td>
|
<td class="text-center"><?= ucfirst($a->marital_status) ?></td>
|
||||||
<td class="text-center"><?= $a->phone_number ?></td>
|
<td class="text-center"><?= $a->phone_number ?></td>
|
||||||
<td class="text-center"><?= $a->reason ?></td>
|
<td class="text-center"><?= truncateText($a->reason) ?></td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
<?= getStatusBadge($a->status, $this->lang) ?>
|
<?= getStatusBadge($a->status, $this->lang) ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue