getJcUrl method
Implementation
String getJcUrl() {
String ip = _getParamModel()?.jcApplicationHost ?? "";
String im = _getParamModel()?.jcWebSocketHost ?? "";
String appFlag = _getParamModel()?.jcAppFlag ?? "";
String apiKey = _getParamModel()?.jcApiKey ?? "";
String secretKey = _getParamModel()?.jcSecretKey ?? "";
String userName = UserManager().getUserModel()?.userName ?? "";
String userId = UserManager().getUserId();
String json = "{\"httpHost\":\"" +
ip +
"\",\"imHost\":\"" +
im +
"\",\"appFlag\":\"" +
appFlag +
"\",\"apiKey\":\"" +
apiKey +
"\",\"secretKey\":\"" +
secretKey +
"\",\"thirdUserName\":\"" +
userName +
"\",\"thirdUserId\":\"" +
userId +
"\",\"title\":\"" +
Strings.rechargeProxyH5Title.tr +
"\",\"forWhat\":\"" +
"mall" +
"\"}";
String encodeUriStr = Uri.encodeFull(json);
Codec<String, String> stringToBase64 = utf8.fuse(base64);
String encoded = stringToBase64.encode(encodeUriStr);
String loadUrl = "${_getParamModel()?.jcWebviewHost}/#/init/$encoded";
LogUtils.d(loadUrl);
return loadUrl;
}