1 Star 0 Fork 7

growlang/HongYuDSC

forked from 王东祥/HongYuDSC 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
receive.php 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
鸿宇科技 提交于 2018-03-02 02:43 . Initial commit
<?php
//zend by QQ:1527200768 鸿宇科技 禁止倒卖 一经发现停止任何服务
define('IN_ECS', true);
require dirname(__FILE__) . '/includes/init.php';
require ROOT_PATH . '/includes/lib_area.php';
get_request_filter();
$order_id = (!empty($_REQUEST['id']) ? intval($_REQUEST['id']) : 0);
$consignee = (!empty($_REQUEST['con']) ? rawurldecode(trim($_REQUEST['con'])) : '');
$sql = 'SELECT * FROM ' . $ecs->table('order_info') . ' WHERE order_id = \'' . $order_id . '\'';
$order = $db->getRow($sql);
if (empty($order)) {
$msg = $_LANG['order_not_exists'];
}
else if ($order['shipping_status'] == SS_RECEIVED) {
$msg = $_LANG['order_already_received'];
}
else if ($order['shipping_status'] != SS_SHIPPED) {
$msg = $_LANG['order_invalid'];
}
else if ($order['consignee'] != $consignee) {
$msg = $_LANG['order_invalid'];
}
else {
$sql = 'UPDATE ' . $ecs->table('order_info') . ' SET shipping_status = \'' . SS_RECEIVED . '\' WHERE order_id = \'' . $order_id . '\'';
$db->query($sql);
order_action($order['order_sn'], $order['order_status'], SS_RECEIVED, $order['pay_status'], '', $_LANG['buyer']);
$msg = $_LANG['act_ok'];
}
assign_template();
$position = assign_ur_here();
$smarty->assign('page_title', $position['title']);
$smarty->assign('ur_here', $position['ur_here']);
$smarty->assign('categories', get_categories_tree());
$smarty->assign('helps', get_shop_help());
assign_dynamic('receive');
$smarty->assign('msg', $msg);
$smarty->display('receive.dwt');
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/growlang/HongYuDSC.git
[email protected]:growlang/HongYuDSC.git
growlang
HongYuDSC
HongYuDSC
master

搜索帮助