$szBackroundPostContent .= '&stage=' . $nInstallCount . '&stast=' . $nFirstAmount . '&staed=' . $nEachAmount;
    }
    /*
    		if ($szUseBonus == '1') {
    			$EV_red_de_amt = $amount - $nLoyaltyPaidAmount; //折抵金額
    			$szBackroundPostContent.='&red_dan=' . $nLoyaltyPoint . '&red_de_amt=' . $EV_red_de_amt . '&red_ok_amt=' . $nLoyaltyPaidAmount . '&red_yet=' . $nLoyaltyPointBalance;
    		}
    */
    if ($szUseBonus == '1') {
        $szBackroundPostContent .= '&red_dan=' . $nLoyaltyPoint . '&red_de_amt=' . $nLoyaltyReduceAmount . '&red_ok_amt=' . $nLoyaltyPaidAmount . '&red_yet=' . $nLoyaltyPointBalance;
    }
    // 送第一次
    if ($LG == 'BIG5') {
        $ccc = postgate_curl_true_nossl($szBackroundPostURL, mb_convert_encoding($szBackroundPostContent, "Big5", "UTF-8"), 1);
    } else {
        $ccc = postgate_curl_true_nossl($szBackroundPostURL, $szBackroundPostContent);
    }
    // 記錄成功
    if ($ccc == 'PostOK') {
        $szSQL = "UPDATE o_auth SET bk_ok='3' WHERE sr='{$szMerchantTradeNo}' AND amount='{$nTradeAmount}' LIMIT 1 ";
        // 1 要開始作, 2 為執行, 3 成功, 0 沒執行
        mysql_query($szSQL, $databaseLink);
    } else {
        // 記錄已執行,但未成功
        $szSQL = "UPDATE o_auth SET bk_ok='2' WHERE sr='{$szMerchantTradeNo}' AND amount='{$nTradeAmount}' LIMIT 1 ";
        // 1 要開始作, 2 為執行, 3 成功, 0 沒執行
        mysql_query($szSQL, $databaseLink);
    }
}
// 繪製 Html 郵件內容
if (!$arUser['banner']) {
Exemple #2
0
        //      $ccc = my_curl_true_nossl($neil_bk_posturl, mb_convert_encoding($BK_ch_post, "Big5", "UTF-8"));
        //2014.06.13改用postgate2 by raleigh
        $ccc = postgate_curl_true_nossl($neil_bk_posturl, $BK_ch_post);
    }
}
//有 BK_ch_URL 的, 進行幕後觸發
if ($bk_posturl) {
    $str = "update o_auth set bk_ok='1' where sr='{$Cxc['3']}' and amount='{$amount}' limit 1 ";
    //1要開始作,2為執行,3成功,0沒執行
    mysql_query($str, $plink);
    //2014.06.17改用postgate2 by raleigh
    //$ccc = my_curl_true_nossl($bk_posturl,mb_convert_encoding($BK_ch_post,"Big5","UTF-8"));
    if ($LG == 'BIG5') {
        $ccc = postgate_curl_true_nossl($bk_posturl, mb_convert_encoding($BK_ch_post, "Big5", "UTF-8"), 1);
    } else {
        $ccc = postgate_curl_true_nossl($bk_posturl, $BK_ch_post);
    }
    if ($ccc == 'PostOK') {
        //記錄成功
        $str = "update o_auth set bk_ok='3' where sr='{$Cxc['3']}' and amount='{$amount}' limit 1 ";
        //1要開始作,2為執行,3成功,0沒執行
        mysql_query($str, $plink);
    } else {
        //記錄已執行, 但未成功
        $str = "update o_auth set bk_ok='2' where sr='{$Cxc['3']}' and amount='{$amount}' limit 1 ";
        //1要開始作,2為執行,3成功,0沒執行
        mysql_query($str, $plink);
    }
    /*
    if($LG=='BIG5'){
    	//===送第一次
        //    $ccc = my_curl_true_nossl($neil_bk_posturl, mb_convert_encoding($BK_ch_post, "Big5", "UTF-8"));
        //2014.06.17改用postgate2 by raleigh
        $ccc = postgate_curl_true_nossl($neil_bk_posturl, $BK_ch_post);
    }
}
//有 BK_ch_URL 的, 進行幕後觸發
if ($Mpisr['bk_posturl']) {
    $str = "update o_auth set bk_ok='1' where sr='{$OrderID}' and amount='{$amount}' limit 1 ";
    //1要開始作,2為執行,3成功,0沒執行
    mysql_query($str, $plink);
    //2014.06.16改用postgate2 by raleigh
    //$ccc = my_curl_true_nossl($Mpisr['bk_posturl'],mb_convert_encoding($BK_ch_post,"Big5","UTF-8"));
    if ($LG == 'BIG5') {
        $ccc = postgate_curl_true_nossl($Mpisr['bk_posturl'], mb_convert_encoding($BK_ch_post, "Big5", "UTF-8"), 1);
    } else {
        $ccc = postgate_curl_true_nossl($Mpisr['bk_posturl'], $BK_ch_post);
    }
    if ($ccc == 'PostOK') {
        //記錄成功
        $str = "update o_auth set bk_ok='3' where sr='{$OrderID}' and amount='{$amount}' limit 1 ";
        //1要開始作,2為執行,3成功,0沒執行
        mysql_query($str, $plink);
    } else {
        //記錄已執行, 但未成功
        $str = "update o_auth set bk_ok='2' where sr='{$OrderID}' and amount='{$amount}' limit 1 ";
        //1要開始作,2為執行,3成功,0沒執行
        mysql_query($str, $plink);
    }
}
echo 'OK';
//寄出郵件管理者