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