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