正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -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 | /** |
-
请 注册 或 登录 后发表评论