$od_id, 'od_name' => $od_result['od_name'], 'it_name' => $it_name_str]; // 변수 치환 정보 $cu_atk = send_alimtalk_preset('CU-OR03', ['rcv' => $od_result['od_hp'] ?: $od_result['od_tel'], 'rcvnm' => $od_result['od_name']], $conditions); // 회원 $ad_atk = send_admin_alimtalk('AD-OR03', 'super', $conditions); // 관리자 } // 알림톡 발송 END ------------------------------------------------------- } if($INIpayLog) { $logfile = fopen( $INIpayHome . "/log/result.log", "a+" ); fwrite( $logfile,"************************************************"); fwrite( $logfile,"ID_MERCHANT : ".$id_merchant."\r\n"); fwrite( $logfile,"NO_TID : ".$no_tid."\r\n"); fwrite( $logfile,"NO_OID : ".$no_oid."\r\n"); fwrite( $logfile,"NO_VACCT : ".$no_vacct."\r\n"); fwrite( $logfile,"AMT_INPUT : ".$amt_input."\r\n"); fwrite( $logfile,"NM_INPUTBANK : ".$nm_inputbank."\r\n"); fwrite( $logfile,"NM_INPUT : ".$nm_input."\r\n"); fwrite( $logfile,"************************************************"); fwrite( $logfile,"전체 결과값"."\r\n"); fwrite( $logfile, $msg_id."\r\n"); fwrite( $logfile, $no_tid."\r\n"); fwrite( $logfile, $no_oid."\r\n"); fwrite( $logfile, $id_merchant."\r\n"); fwrite( $logfile, $cd_bank."\r\n"); fwrite( $logfile, $dt_trans."\r\n"); fwrite( $logfile, $tm_trans."\r\n"); fwrite( $logfile, $no_msgseq."\r\n"); fwrite( $logfile, $type_msg."\r\n"); fwrite( $logfile, $cl_close."\r\n"); fwrite( $logfile, $cl_kor."\r\n"); fwrite( $logfile, $no_msgmanage."\r\n"); fwrite( $logfile, $no_vacct."\r\n"); fwrite( $logfile, $amt_input."\r\n"); fwrite( $logfile, $amt_check."\r\n"); fwrite( $logfile, $nm_inputbank."\r\n"); fwrite( $logfile, $nm_input."\r\n"); fwrite( $logfile, $dt_inputstd."\r\n"); fwrite( $logfile, $dt_calculstd."\r\n"); fwrite( $logfile, $flg_close."\r\n"); fwrite( $logfile, "\r\n"); fclose( $logfile ); } //************************************************************************************ //위에서 상점 데이터베이스에 등록 성공유무에 따라서 성공시에는 "OK"를 이니시스로 //리턴하셔야합니다. 아래 조건에 데이터베이스 성공시 받는 FLAG 변수를 넣으세요 //(주의) OK를 리턴하지 않으시면 이니시스 지불 서버는 "OK"를 수신할때까지 계속 재전송을 시도합니다 //기타 다른 형태의 PRINT( echo )는 하지 않으시기 바랍니다 if ($result) { echo "OK"; // 절대로 지우지마세요 } else { echo "DB Error"; } //************************************************************************************* }