Commit 8178a592 authored by Antonio.Suerte's avatar Antonio.Suerte

To Return_URL data logging

parent 7805856a
......@@ -100,7 +100,6 @@ class LogicSettlement extends SettlementModelClass {
* @return : なし
-------------------------------------------------------------------------*/
private function regist() {
if($this -> accessModify('INSERT_TRANSFER_API', $this -> getRegistData())) {
// コミッションの登録(送金元)
......@@ -204,15 +203,20 @@ class LogicSettlement extends SettlementModelClass {
if(isset($_SERVER['HTTP_REFERER'])) {
$referer = $this -> sqlSanitation($_SERVER['HTTP_REFERER']);
}
// 転送をする
if($url != NO_STRING
&& $file == NO_COUNT
&& $result == NO_COUNT) { // 正常終了
$this -> accessModifyCommon('INSERT_LOG_POST', array($ip,$referer,'[CALLBACK_SUCCESSFUL]'.$jsonData));
// logs the data that will be passed
$this -> accessModifyCommon('INSERT_LOG_POST', array($ip, $referer, "[TO_RETURN_URL_DATA]{$data}"));
$this -> accessModifyCommon('INSERT_LOG_POST', array($ip, $referer, "[CALLBACK_SUCCESSFUL]{$jsonData}"));
header('Location: ' . $url);
} else { // 異常
$this -> accessModifyCommon('INSERT_LOG_POST', array($ip,$referer,'[CALLBACK_ERROR]'.$jsonData));
$this -> accessModifyCommon('INSERT_LOG_POST', array($ip,$referer,"[CALLBACK_ERROR]{$jsonData}"));
if($failUrl != NO_STRING) {
header('Location: ' . $failUrl);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment