Mini Program can replace the avatar wx.uploadFile to test on pc and debug the phone, but not on the phone. I hope I can help you.

Wechat:
467015242

changeAvatar:function (){
        var that=this;
        wx.chooseImage({
            count: 1, // 9
            sizeType: ["original", "compressed"], // 
            sourceType: ["album", "camera"], // 
        
            success: function (res) {
                // console.log(avatar,"avatar")
                // tempFilePathimgsrc
                var avatarSrc = res.tempFilePaths
                console.log(avatarSrc,"avatarSrc")
                wx.uploadFile({
                    url: "https://product.fishqc.com/User/Profile/upImg",
                    filePath: res.tempFilePaths[0],
                    name: encodeURI("file"),
                    formData: { "avatar": encodeURI(avatarSrc) }, // HTTP  form data
                    header: {
                        "content-type": "multipart/form-data", // 
                        "skey": wx.getStorageSync("getstoreskey")
                    },
                    success: function (info) {
                        // that.getuserheadImgstatus()
                        // that.getuserInfo()
                        that.setData({
                            "UserInfodata.image": res.tempFilePaths[0],
                            "Headimg": res.tempFilePaths[0]
                        });
                        wx.setStorageSync("image", res.tempFilePaths[0]);
                        wx.setStorageSync("Headimg", res.tempFilePaths[0]);
                    }
                })
            }
        })
    }
Mar.28,2021

https://product.fishqc.com/Us.

No uploaded security domain is configured

clipboard.png

clipboard.png
you will find that it doesn't work either

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7c2f1e-275d3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7c2f1e-275d3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?