@@ -109,7 +109,7 @@ public function add() {
109109 unset($ postData ['rules ' ]);
110110 $ res = AdminAuthGroup::create ($ postData );
111111 if ($ res === false ) {
112- return $ this ->buildFailed (ReturnCode::DB_SAVE_ERROR , ' 操作失败 ' );
112+ return $ this ->buildFailed (ReturnCode::DB_SAVE_ERROR );
113113 } else {
114114 if ($ rules ) {
115115 $ insertData = [];
@@ -124,7 +124,7 @@ public function add() {
124124 (new AdminAuthRule ())->saveAll ($ insertData );
125125 }
126126
127- return $ this ->buildSuccess ([] );
127+ return $ this ->buildSuccess ();
128128 }
129129 }
130130
@@ -141,9 +141,9 @@ public function changeStatus() {
141141 'status ' => $ status
142142 ]);
143143 if ($ res === false ) {
144- return $ this ->buildFailed (ReturnCode::DB_SAVE_ERROR , ' 操作失败 ' );
144+ return $ this ->buildFailed (ReturnCode::DB_SAVE_ERROR );
145145 } else {
146- return $ this ->buildSuccess ([] );
146+ return $ this ->buildSuccess ();
147147 }
148148 }
149149
@@ -164,9 +164,9 @@ public function edit() {
164164 unset($ postData ['rules ' ]);
165165 $ res = AdminAuthGroup::update ($ postData );
166166 if ($ res === false ) {
167- return $ this ->buildFailed (ReturnCode::DB_SAVE_ERROR , ' 操作失败 ' );
167+ return $ this ->buildFailed (ReturnCode::DB_SAVE_ERROR );
168168 } else {
169- return $ this ->buildSuccess ([] );
169+ return $ this ->buildSuccess ();
170170 }
171171 }
172172
@@ -199,7 +199,7 @@ public function del() {
199199 AdminAuthGroup::destroy ($ id );
200200 AdminAuthRule::destroy (['group_id ' => $ id ]);
201201
202- return $ this ->buildSuccess ([] );
202+ return $ this ->buildSuccess ();
203203 }
204204
205205 /**
@@ -226,9 +226,9 @@ public function delMember() {
226226 'uid ' => $ uid
227227 ]);
228228 if ($ res === false ) {
229- return $ this ->buildFailed (ReturnCode::DB_SAVE_ERROR , ' 操作失败 ' );
229+ return $ this ->buildFailed (ReturnCode::DB_SAVE_ERROR );
230230 } else {
231- return $ this ->buildSuccess ([] );
231+ return $ this ->buildSuccess ();
232232 }
233233 }
234234
0 commit comments