|
|
|
@ -59,6 +59,7 @@ public function update(EditAuthInput $request)
|
|
|
|
$auth = Auth::where('id', $id)->where('del', 2)->first();
|
|
|
|
$auth = Auth::where('id', $id)->where('del', 2)->first();
|
|
|
|
if (!$auth) Yo::error_echo(100000, ['路由']);
|
|
|
|
if (!$auth) Yo::error_echo(100000, ['路由']);
|
|
|
|
$type = $auth->type;
|
|
|
|
$type = $auth->type;
|
|
|
|
|
|
|
|
if ($pid === $id) Yo::error_echo(100029);
|
|
|
|
if ($auth->pid != $pid) {
|
|
|
|
if ($auth->pid != $pid) {
|
|
|
|
if ($auth->pid == 0) {
|
|
|
|
if ($auth->pid == 0) {
|
|
|
|
$s_auth = Auth::where('pid', $id)->where('del', 2)->count();
|
|
|
|
$s_auth = Auth::where('pid', $id)->where('del', 2)->count();
|
|
|
|
|