作者 何书鹏
1 个管道 的构建 通过 耗费 1 秒

通知

@@ -80,9 +80,9 @@ class User extends Api @@ -80,9 +80,9 @@ class User extends Api
80 $user['is_work'] = '0'; 80 $user['is_work'] = '0';
81 $user['factory'] = ''; 81 $user['factory'] = '';
82 } 82 }
83 - $user->visible(['id','avatar','nickname','mobile','is_work','factory']);  
84 - $notice = '看看有吗';  
85 - $this->success('成功', compact('user','notice')); 83 + $user->notice = '看看有吗';
  84 + $user->visible(['id','avatar','nickname','mobile','is_work','factory'])->append(['notice']);
  85 + $this->success('成功', compact('user'));
86 } 86 }
87 87
88 /** 88 /**