|
@@ -27,7 +27,7 @@ class AdminMenu extends Base
|
|
|
];
|
|
|
|
|
|
public static function GetMenu($menuid){
|
|
|
- $info=self::name('view_menu')->where(["cid"=>$menuid,"is_del"=>0])->findOrEmpty();
|
|
|
+ $info=self::where(["cid"=>$menuid,"is_del"=>0])->findOrEmpty();
|
|
|
if($info->pid>0){
|
|
|
$paren = self::where(['id'=>$menuid,'is_del'=>0])->findOrEmpty();
|
|
|
}
|