|
|
|
@ -80,7 +80,11 @@ class BaseController extends Controller |
|
|
|
$authArr[$authKey] = 1; |
|
|
|
} |
|
|
|
$key = explode('.',$authKey); |
|
|
|
$newArr[$key[1]] = $authArr[$authKey]; |
|
|
|
if (isset($newArr[$key[1]])) { |
|
|
|
$newArr[$key[1] . '_child'] = $authArr[$authKey]; |
|
|
|
} else { |
|
|
|
$newArr[$key[1]] = $authArr[$authKey]; |
|
|
|
} |
|
|
|
} |
|
|
|
return $newArr; |
|
|
|
} |
|
|
|
|