Mike 9 éve
szülő
commit
ae9092e440
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      wl/www/js/controllers/my.js

+ 1 - 2
wl/www/js/controllers/my.js

xqd xqd
@@ -65,7 +65,6 @@
             msg.error(erro);
         });
         $scope.setAvator = function () {
-            console.log("setAvator 1:");
             var sheet = $ionicActionSheet.show({
                 buttons: [{ text: '<b>拍照</b> 上传' }, { text: '从 <b>相册</b> 中选' }],
                 titleText: '图片上传',
@@ -87,7 +86,7 @@
                         }else {
                             $scope.user.avatar = imageUri;
                             var uploadOptions = new FileUploadOptions();
-                            uploadOptions.fileKey = "avatar";
+                            uploadOptions.fileKey = "photo";
                             uploadOptions.fileName = "avatar.jpg";
                             uploadOptions.mimeType = "image/jpeg";
                             uploadOptions.httpMethod = 'post';