1 Star 0 Fork 1

maltYumi/cake

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sansilinorder_manage_bykevinfeng.php 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
maltYumi 提交于 2018-12-19 14:58 . Signed-off-by: malt 423498555@qq.com
<?php
define('IN_ECS', true);
require(dirname(__FILE__) . '/includes/init.php');
if($_POST){
$order_sn = !empty($_POST['order_sn']) ? trim($_POST['order_sn']) : '';
if(empty($order_sn)){
$data['status'] = 0;
$data['info'] = '订单号不能为空';
}else{
$sql = "SELECT order_id FROM " . $GLOBALS['ecs']->table('order_info') . " WHERE order_sn = '{$order_sn}' ";
$order_id = $GLOBALS['db']->getOne($sql);
if(empty($order_id)){
$data['status'] = 0;
$data['info'] = '订单号不存在';
}else{
include_once(ROOT_PATH . 'includes/lib_order.php');
$order = order_info($order_id);
if($order['order_status'] == '1' && $order['shipping_status'] == '0' && $order['pay_status'] == '2'){
$new_status['order_status'] = 5;
$new_status['shipping_status'] = 2;
$new_status['pay_status'] = 2;
update_order($order_id, $new_status);
$data['status'] = 1;
$data['info'] = '订单自提成功,自提日期:'.date("Y-m-d H:i:s");
}else{
$data['status'] = 0;
$data['info'] = '该订单非自提订单,或者已经自提';
}
}
}
$smarty->assign('order_sn', $order_sn);
$smarty->assign('data', $data);
}
$smarty->display('order_manage.dwt');
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/maltYumi/cake.git
git@gitee.com:maltYumi/cake.git
maltYumi
cake
cake
master

搜索帮助