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

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,11 +85,6 @@ class UserSize extends Model @@ -85,11 +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 - // 没有默认收货地址,就把该收货地址设为默认  
89 - if(!$this->get(['user_id'=>$this['user_id'],'isdefault'=>'1'])){  
90 - $data['isdefault'] = '1';  
91 - }  
92 - return $data;  
93 return $this->allowField(true)->save($data); 88 return $this->allowField(true)->save($data);
94 } 89 }
95 90