订单列表

parent 4408417f
Showing with 1 additions and 1 deletions
......@@ -343,7 +343,7 @@ class OrderService
return [1003,"error:order status"];
}
$flag = OrderModel::where("order_id",$order_id)->update(["status"=>OrderModel::status_cancel,"update_time"=>time()]);
return $flag ? [0,"cancel order success"]:[1002,"error: cancel order"];
return $flag ? [0,"Cancel order success"]:[1002,"Cancel order failed"];
}
/*
......
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 sign in to comment