作者 liyuhang

gx

@@ -31,20 +31,11 @@ class UserLogic extends BaseLogic @@ -31,20 +31,11 @@ class UserLogic extends BaseLogic
31 //密码加密 31 //密码加密
32 $this->param['password'] = base64_encode(md5($this->param['password'])); 32 $this->param['password'] = base64_encode(md5($this->param['password']));
33 //上传头像 33 //上传头像
34 -<<<<<<< HEAD  
35 -<<<<<<< HEAD  
36 - $rs = $this->model->add($param);  
37 -=======  
38 - $data = $this->upload();  
39 - $this->param['image'] = $data['path'];  
40 -=======  
41 if(isset($this->param['image'])){ 34 if(isset($this->param['image'])){
42 $data = $this->upload(); 35 $data = $this->upload();
43 $this->param['image'] = $data['path']; 36 $this->param['image'] = $data['path'];
44 } 37 }
45 ->>>>>>> 3b461e8f6b3728aaecd000b788883b3821a11fad  
46 $rs = $this->model->add($this->param); 38 $rs = $this->model->add($this->param);
47 ->>>>>>> 035a3ec52f37cac95246eaab50090ce3f6c67bb2  
48 if($rs === false){ 39 if($rs === false){
49 $this->fail('error',Code::USER_ERROR); 40 $this->fail('error',Code::USER_ERROR);
50 } 41 }