王新凯 3 rokov pred
rodič
commit
5ee9cd99ce
1 zmenil súbory, kde vykonal 7 pridanie a 1 odobranie
  1. 7 1
      application/api/controller/Crontab.php

+ 7 - 1
application/api/controller/Crontab.php

@@ -20,7 +20,13 @@ class Crontab extends Api
 
        foreach ($list as $k=>$v){
 
-           $path=$pid.'/';
+
+           if($pid==0){
+               $path=$pid.'/';
+           }else{
+
+               $path=$v['path'].$v['id'].'/';
+           }
            Db::table('fa_user')->where('id',$v['id'])->update(['path'=>$path]);
 
            $this->user_path($v['id']);