Silent il y a 7 ans
Parent
commit
93b7b7eee9
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      app/Http/Controllers/Admin/OrderController.php

+ 3 - 2
app/Http/Controllers/Admin/OrderController.php

xqd xqd
@@ -69,7 +69,8 @@ class OrderController extends Controller
         if(empty($request->input('id')) || empty($item = $this->model->find($request->input('id')))) {
             return $this->showWarning('找不到订单');
         }
-        return view($this->view_path . 'show', compact('item'));
+        list($pre_uri, $model, $model_name) = array($this->pre_uri, $this->model, $this->model_name);
+        return view($this->view_path . 'show', compact('item','pre_uri', 'model', 'model_name'));
     }
 
     public function showRemarkForm(Request $request)
@@ -78,7 +79,7 @@ class OrderController extends Controller
             return $this->showWarning('找不到订单');
         }
         list($pre_uri, $model, $model_name) = array($this->pre_uri, $this->model, $this->model_name);
-        return view($this->view_path . 'show-remark-form', compact('item', 'pre_uri', 'model', 'model_name'));
+        return view($this->view_path . 'show-remark-form', compact('item','pre_uri', 'model', 'model_name'));
     }
 
     public function updateRemark(Request $request)