马国华 пре 8 година
родитељ
комит
fd4a099613
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      controller/v2/user.js

+ 1 - 1
controller/v2/user.js

@@ -278,7 +278,7 @@ class User extends AddressComponent {
 		}
 
 		try{
-			const image_path = await this.qiniu(req);
+			const image_path = await this.getPath(req);
 			await UserInfoModel.findOneAndUpdate({user_id}, {$set: {avatar: image_path}});
 			res.send({
 				status: 1,