1 Star 0 Fork 5

doo/lmshop_kj

forked from YHGJ/lmshop_kj 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
receive.php 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
Administrator 提交于 2017-07-31 14:57 . test
<?php
//zend QQ:2172298892
define('IN_ECS', true);
require dirname(__FILE__) . '/includes/init.php';
require ROOT_PATH . '/includes/must_login.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/dzh19951015/lmshop_kj.git
git@gitee.com:dzh19951015/lmshop_kj.git
dzh19951015
lmshop_kj
lmshop_kj
master

搜索帮助