diff --git a/application/models/Order_model.php b/application/models/Order_model.php index 74780e95..d8619d56 100644 --- a/application/models/Order_model.php +++ b/application/models/Order_model.php @@ -13,6 +13,13 @@ class Order_model extends CI_Model { where COLI_ID = ?", $order_id); $order_array = $order_query->row_array(); + if (empty($order_array)) { + $order_array = [ + 'COLI_Name' => '无法查到该订单', + 'COLI_OrderDetailText' => '请检查订单号是否正确', + 'COLI_OrderStartDate' => 'NULL' + ]; + } return $order_array; } @@ -26,8 +33,8 @@ class Order_model extends CI_Model { if (empty($order_array)) { $order_array = [ - 'COLI_Name' => 'NULL', - 'COLI_OrderDetailText' => 'NULL', + 'COLI_Name' => '无法查到该订单', + 'COLI_OrderDetailText' => '订单可能没有同步回来', 'COLI_OrderStartDate' => 'NULL' ]; } diff --git a/application/views/order/detail.php b/application/views/order/detail.php index 9148ad46..28ede0e7 100644 --- a/application/views/order/detail.php +++ b/application/views/order/detail.php @@ -16,12 +16,11 @@
-
网前
+
网前订单情况
- - + @@ -35,12 +34,11 @@
-
HT
+
HT 订单情况
已经入库成功
COLI_Name COLI_OrderDetailText
订单号 订单信息
- - +
可以在HT查询
COLI_Name COLI_OrderDetailText
订单号 订单信息