Merge pull request #1161 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-conflict-qcloud-webconsole to release/2.5.0

* commit '2fa4d761e74673030801d53e6240e7e39787845b':
  避免多次编码后,qcloud不能解开url编码
This commit is contained in:
邱剑
2019-03-04 21:22:09 +08:00
+1 -5
View File
@@ -98,11 +98,7 @@ func (info *RemoteConsoleInfo) getOpenStackURL() (string, error) {
}
func (info *RemoteConsoleInfo) getQcloudURL() (string, error) {
base := "https://img.qcloud.com/qcloud/app/active_vnc/index.html"
params := url.Values{
"InstanceVncUrl": {info.Url},
}
return fmt.Sprintf("%s?%s", base, params.Encode()), nil
return "https://img.qcloud.com/qcloud/app/active_vnc/index.html?InstanceVncUrl=" + info.Url, nil
}
func (info *RemoteConsoleInfo) getAliyunURL() (string, error) {