Commit 742b5560 authored by Antonio.Suerte's avatar Antonio.Suerte

To Return_URL data logging

parent 2b6c3110
...@@ -100,7 +100,6 @@ class LogicSettlement extends SettlementModelClass { ...@@ -100,7 +100,6 @@ class LogicSettlement extends SettlementModelClass {
* @return : なし * @return : なし
-------------------------------------------------------------------------*/ -------------------------------------------------------------------------*/
private function regist() { private function regist() {
if($this -> accessModify('INSERT_TRANSFER_API', $this -> getRegistData())) { if($this -> accessModify('INSERT_TRANSFER_API', $this -> getRegistData())) {
// コミッションの登録(送金元) // コミッションの登録(送金元)
...@@ -204,15 +203,20 @@ class LogicSettlement extends SettlementModelClass { ...@@ -204,15 +203,20 @@ class LogicSettlement extends SettlementModelClass {
if(isset($_SERVER['HTTP_REFERER'])) { if(isset($_SERVER['HTTP_REFERER'])) {
$referer = $this -> sqlSanitation($_SERVER['HTTP_REFERER']); $referer = $this -> sqlSanitation($_SERVER['HTTP_REFERER']);
} }
// 転送をする // 転送をする
if($url != NO_STRING if($url != NO_STRING
&& $file == NO_COUNT && $file == NO_COUNT
&& $result == 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); header('Location: ' . $url);
} else { // 異常 } 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) { if($failUrl != NO_STRING) {
header('Location: ' . $failUrl); 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