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

bug修改

@@ -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