马国华 il y a 8 ans
Parent
commit
b03f606497
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      controller/admin/admin.js

+ 1 - 1
controller/admin/admin.js

@@ -251,7 +251,7 @@ class Admin extends AddressComponent {
 		}
 
 		try{
-			const image_path = await this.qiniu(req);
+			const image_path = await this.getPath(req);
 			await AdminModel.findOneAndUpdate({id: admin_id}, {$set: {avatar: image_path}});
 			res.send({
 				status: 1,