@@ -34,7 +34,7 @@ public function index()
34
34
public function clearcache ()
35
35
{
36
36
cache ('menus ' , null );
37
- $ this ->success ("清除成功 " , url ('permission/index ' ));
37
+ $ this ->success ("清除成功 " , url ('manager. permission/index ' ));
38
38
}
39
39
40
40
/**
@@ -53,7 +53,7 @@ public function add($pid = 0)
53
53
$ this ->error ($ validate ->getError ());
54
54
} else {
55
55
if (Db::name ('Permission ' )->insert ($ data )) {
56
- $ this ->success (lang ('Add success! ' ), url ('permission/index ' ));
56
+ $ this ->success (lang ('Add success! ' ), url ('manager. permission/index ' ));
57
57
} else {
58
58
$ this ->error (lang ('Add failed! ' ));
59
59
}
@@ -82,7 +82,7 @@ public function edit($id = 0)
82
82
$ this ->error ($ validate ->getError ());
83
83
} else {
84
84
if (Db::name ('Permission ' )->where ('id ' , $ id )->update ($ data )) {
85
- $ this ->success (lang ('Update success! ' ), url ('permission/index ' ));
85
+ $ this ->success (lang ('Update success! ' ), url ('manager. permission/index ' ));
86
86
} else {
87
87
$ this ->error (lang ('Update failed! ' ));
88
88
}
@@ -108,7 +108,7 @@ public function status($id, $status = 1)
108
108
$ result = $ model ->where ('id ' , $ id )->update (['disable ' => $ status ? 1 : 0 ]);
109
109
if ($ result ) {
110
110
cache ('menus ' , null );
111
- $ this ->success (lang ('Update success! ' ), url ('permission/index ' ));
111
+ $ this ->success (lang ('Update success! ' ), url ('manager. permission/index ' ));
112
112
} else {
113
113
$ this ->error (lang ('Update failed! ' ));
114
114
}
@@ -124,7 +124,7 @@ public function delete($id)
124
124
$ model = Db::name ('Permission ' );
125
125
$ result = $ model ->where ('id ' , $ id )->delete ();
126
126
if ($ result ) {
127
- $ this ->success (lang ('Delete success! ' ), url ('permission/index ' ));
127
+ $ this ->success (lang ('Delete success! ' ), url ('manager. permission/index ' ));
128
128
} else {
129
129
$ this ->error (lang ('Delete failed! ' ));
130
130
}
0 commit comments