正在显示
2 个修改的文件
包含
0 行增加
和
2 行删除
@@ -516,7 +516,6 @@ class User extends Api | @@ -516,7 +516,6 @@ class User extends Api | ||
516 | { | 516 | { |
517 | $post = $this->request->post(); | 517 | $post = $this->request->post(); |
518 | $model = UserSize::detail($this->user['id'], $post['user_size_id']); | 518 | $model = UserSize::detail($this->user['id'], $post['user_size_id']); |
519 | - $this->success(json_encode($model->edit($post))); | ||
520 | if(empty($model)){ | 519 | if(empty($model)){ |
521 | $this->error(__('尺寸信息不存在')); | 520 | $this->error(__('尺寸信息不存在')); |
522 | } | 521 | } |
@@ -85,7 +85,6 @@ class UserSize extends Model | @@ -85,7 +85,6 @@ class UserSize extends Model | ||
85 | if(!empty($data['body_info']) && is_array($data['body_info'])){ | 85 | if(!empty($data['body_info']) && is_array($data['body_info'])){ |
86 | $data['body_info'] = json_encode($data['body_info']); | 86 | $data['body_info'] = json_encode($data['body_info']); |
87 | } | 87 | } |
88 | - return $data; | ||
89 | return $this->allowField(true)->save($data); | 88 | return $this->allowField(true)->save($data); |
90 | } | 89 | } |
91 | 90 |
-
请 注册 或 登录 后发表评论