Commit 44cc27d3 authored by christ's avatar christ

ccw:master_dev

parent 46b07a41
......@@ -244,6 +244,7 @@ class ApiConst
//待自提
const oneHandred=100;
const closeOrder=2;
const cancelOrderBySelf=4;
//待配送
const oneHandredOne=101;
......
......@@ -723,7 +723,7 @@ class OrderServiceModel extends \Business\AbstractModel
if (!empty($orders)) {
foreach ($orders as $order) {
//更新订单信息
$updateData = array('order_state' => ApiConst::orderStateClose,'refund_amount'=>$order['orderAmount']);
$updateData = array('order_state' => ApiConst::orderStateClose,'refund_amount'=>$order['orderAmount'],'gmt_update'=>TIMESTAMP,'is_effective'=>ApiConst::closeOrder);
$update = $orderDao->update(array('order_id' => $order['orderId']),$updateData);
if($update){
if ($order['paymentTime'] > ApiConst::zero && in_array($order['paymentType'], ArrayConst::orderPayTypeOnlines)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment