               success: false,
                            msg: '连接服务器过程中出现异常，消息：' + reason.message
                        };
                    }
                }

                function generateRandomString(length) {
                    let result = '';
                    let characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
                    let charactersLength = characters.length;
                    for (let i = 0; i < length; i++) {