kcp 결제모듈 바이너리 파일 정리 및 64비트에 대응하도록 수정

This commit is contained in:
chicpro
2014-01-17 16:01:23 +09:00
parent ee1a1c5627
commit 218a5ef30a
10 changed files with 28 additions and 16 deletions

BIN
shop/kcp/bin/pp_cli_x64 Executable file

Binary file not shown.

Binary file not shown.

View File

@ -165,7 +165,16 @@
}
else
{
$res_data = $this->mf_exec( $home_dir . "/bin/pp_cli",
if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
if(PHP_INT_MAX == 2147483647) // 32-bit
$bin_exe = $home_dir.'/bin/pp_cli';
else
$bin_exe = $home_dir.'/bin/pp_cli_x64';
} else {
$bin_exe = $home_dir.'/bin/pp_cli_exe.exe';
}
$res_data = $this->mf_exec( $bin_exe,
"-h",
"home=" . $home_dir . "," .
"site_cd=" . $site_cd . "," .