コード例 #1
0
ファイル: Select.php プロジェクト: lajosbencz/pshd
 public function run($force = false)
 {
     if (!$this->_run || $force) {
         if (strlen(trim($this->_query)) < 1) {
             $this->build();
         }
         try {
             $stmnt = null;
             $stmnt = $this->_pshd->prepare($this->_query);
             $stmnt->execute($this->_parameters);
         } catch (\Exception $e) {
             $this->_pshd->triggerError($this->_query, $this->_parameters, $e);
             return $this;
         }
         parent::init($stmnt, $this->_removePagingEnable);
     }
     $this->_run = true;
     return $this;
 }
コード例 #2
0
ファイル: MerchantResult.php プロジェクト: pqshawn/sparrowPHP
if ('marketingconference' == 'marketingconference') {
    echo 333;
    exit;
}
if (is_dir('/www/marketingconference')) {
    echo 11;
    exit;
} else {
    echo 22;
    exit;
}
exit;
require_once '../ebusclient/Result.php';
//1、取得MSG参数,并利用此参数值生成验证结果对象
$tResult = new Result();
$tResponse = $tResult->init($_POST['MSG']);
if ($tResponse->isSuccess()) {
    //2、、支付成功
    print "TrxType         = [" . $tResponse->getValue("TrxType") . "]<br/>";
    print "OrderNo         = [" . $tResponse->getValue("OrderNo") . "]<br/>";
    print "Amount          = [" . $tResponse->getValue("Amount") . "]<br/>";
    print "BatchNo         = [" . $tResponse->getValue("BatchNo") . "]<br/>";
    print "VoucherNo       = [" . $tResponse->getValue("VoucherNo") . "]<br/>";
    print "HostDate        = [" . $tResponse->getValue("HostDate") . "]<br/>";
    print "HostTime        = [" . $tResponse->getValue("HostTime") . "]<br/>";
    print "MerchantRemarks = [" . $tResponse->getValue("MerchantRemarks") . "]<br/>";
    print "PayType         = [" . $tResponse->getValue("PayType") . "]<br/>";
    print "NotifyType      = [" . $tResponse->getValue("NotifyType") . "]<br/>";
} else {
    //3、失败
    print "<br>ReturnCode   = [" . $tResponse->getReturnCode() . "]<br>";