1 Star 0 Fork 1

AITGroup/20181011

forked from maltYumi/20181011 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
receive.php 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
maltYumi 提交于 2018-10-11 16:44 . Signed-off-by: malt 423498555@qq.com
<?php
//zend by QQ:123456 商创网络 禁止倒卖 一经发现停止任何服务
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('helps', get_shop_help());
assign_dynamic('receive');
$smarty->assign('msg', $msg);
$smarty->display('receive.dwt');
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/aitgroup/20181011.git
git@gitee.com:aitgroup/20181011.git
aitgroup
20181011
20181011
master

搜索帮助