mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-25 10:56:38 +08:00
[更新]修改BasicAdmin回调函数
This commit is contained in:
parent
04d932a1c3
commit
3e18113782
@ -147,8 +147,8 @@ class BasicAdmin extends Controller {
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function _callback($method, &$data) {
|
protected function _callback($method, &$data) {
|
||||||
foreach ([$method, "_" . $this->request->action() . "{$method}"] as $method) {
|
foreach ([$method, "_" . $this->request->action() . "{$method}"] as $_method) {
|
||||||
if (method_exists($this, $method) && false === $this->$method($data)) {
|
if (method_exists($this, $_method) && false === $this->$_method($data)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user