本文整理汇总了PHP中orders::get方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::get方法的具体用法?PHP orders::get怎么用?PHP orders::get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类orders
的用法示例。
在下文中一共展示了orders::get方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: orders
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
$orderID = 0;
if (isset($_SESSION['tmp']['order_id'])) {
$orderID = (int) $_SESSION['tmp']['order_id'];
}
require_once ROOT_PATH . '/apps/items/models/orders.class.php';
$cms = new orders();
$order_info = $cms->get($orderID);
if ($order_info) {
$payments = glob(dirname(dirname(dirname(__FILE__))) . '/payments/controllers/*.php');
$payments_data = array();
if ($payments) {
$order_obj = array();
$key = 'chinabank';
require_once ROOT_PATH . '/apps/payments/models/' . $key . '.class.php';
$order_obj[$key] = new $key();
$payments_data[$key] = array('title' => '网银在线', 'description' => '网银在线订单支付', 'form' => $order_obj[$key]->generateForm($order_info), 'logo' => '');
if ($payments_data) {
abr('payments_data', $payments_data);
} else {
addErrorMessage($langArray['no_payment_methods'], '', 'error');
}
} else {
示例2: trim
$v_pstring = trim($_POST['v_pstring']);
// 支付结果信息 : 支付完成(当v_pstatus=20时);失败原因(当v_pstatus=30时,字符串);
$v_amount = trim($_POST['v_amount']);
// 订单实际支付金额
$v_moneytype = trim($_POST['v_moneytype']);
//订单实际支付币种
$remark1 = trim($_POST['remark1']);
//备注字段1
$remark2 = trim($_POST['remark2']);
//备注字段2
$v_md5str = trim($_POST['v_md5str']);
//拼凑后的MD5校验值
$order_id = $remark1;
//订单id
$md5string = strtoupper(md5($v_oid . $v_pstatus . $v_amount . $v_moneytype . $key));
if ($v_md5str == $md5string) {
if ($v_pstatus == "20") {
echo '支付成功,可进行逻辑处理!';
require_once ROOT_PATH . '/apps/items/models/orders.class.php';
$cms = new orders();
$order_info = $cms->get($order_id);
if ($order_info) {
$cms->orderIsPay($order_id, '网银在线支付');
//订单成功
refresh('http://' . $config['domain'] . '/' . $languageURL . 'users/downloads/');
//下载页面
}
} else {
echo "支付失败";
}
}