|
@@ -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']);
|