rabin 2 years ago
parent
commit
21ce90e925
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/mshop/lib/Buy.php

+ 4 - 0
app/mshop/lib/Buy.php

@@ -663,6 +663,10 @@ class Buy
 
 
         $info = Dever::db('shop/buy_order')->one($id);
         $info = Dever::db('shop/buy_order')->one($id);
 
 
+        if (!$info) {
+            return '无订单信息';
+        }
+
         $result = array();
         $result = array();
 
 
         $type_info = $this->show_base($info, $result, $type);
         $type_info = $this->show_base($info, $result, $type);