修正几处已知bug

This commit is contained in:
2018-03-07 12:51:32 +08:00
parent 047e41a8d9
commit 81fa6b30a2
3 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ class Upload extends Admin {
public function _empty() { public function _empty() {
$controller = controller('common/Upload'); $controller = controller('common/Upload');
$action = ACTION_NAME; $action = $this->request->action();
return $controller->$action(); return $controller->$action();
} }
} }

View File

@@ -175,7 +175,7 @@ class Admin extends Base {
$models = AuthGroup::getAuthModels(session('user_auth.uid')); $models = AuthGroup::getAuthModels(session('user_auth.uid'));
foreach ($list as $key => $value) { foreach ($list as $key => $value) {
if (IS_ROOT || in_array($value['id'], $models)) { if (IS_ROOT || in_array($value['id'], $models)) {
if ('admin/content/index' == $this->url && input('model_id') == $value['id']) { if ('admin/content/index' == $this->request->path() && input('model_id') == $value['id']) {
$value['style'] = "active"; $value['style'] = "active";
} }
$value['url'] = "admin/content/index?model_id=" . $value['id']; $value['url'] = "admin/content/index?model_id=" . $value['id'];

View File

@@ -2,6 +2,6 @@
<!-- 实例化编辑器代码 --> <!-- 实例化编辑器代码 -->
<script type="text/javascript"> <script type="text/javascript">
var ue = UE.getEditor('{$field}', { var ue = UE.getEditor('{$field}', {
serverUrl : "{:url(MODULE_NAME.'/upload/ueditor')}" serverUrl : "{:url(request()->module().'/upload/ueditor')}"
}); });
</script> </script>