Use https
parent
5b951eb5df
commit
a0a9f49548
|
@ -98,6 +98,7 @@ class App extends React.Component {
|
||||||
var { selectedProject } = this.state;
|
var { selectedProject } = this.state;
|
||||||
var settingValue = getProjectSettingValue(selectedProject?.Name) || [1, 1, 1];
|
var settingValue = getProjectSettingValue(selectedProject?.Name) || [1, 1, 1];
|
||||||
var rawUrl = selectedProject?.HtmlUrl ? encodeURI(selectedProject?.HtmlUrl) : "";
|
var rawUrl = selectedProject?.HtmlUrl ? encodeURI(selectedProject?.HtmlUrl) : "";
|
||||||
|
rawUrl = rawUrl.replace("http:", () => "https:")
|
||||||
if (rawUrl) {
|
if (rawUrl) {
|
||||||
rawUrl += `?datanumber=${settingValue[0]}&datanumber1=${settingValue[1]}&datanumber2=${settingValue[2]}&lunaOrHtml=false`;
|
rawUrl += `?datanumber=${settingValue[0]}&datanumber1=${settingValue[1]}&datanumber2=${settingValue[2]}&lunaOrHtml=false`;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var BaseUrl = "http://api.soyootech.com/";
|
var BaseUrl = "https://api.soyootech.com/";
|
||||||
export async function UserLogin(loginForm) {
|
export async function UserLogin(loginForm) {
|
||||||
try {
|
try {
|
||||||
var response = await fetch(BaseUrl + "SoyooUser/previewlogin", {
|
var response = await fetch(BaseUrl + "SoyooUser/previewlogin", {
|
||||||
|
|
|
@ -10,7 +10,7 @@ var client = new aliOss({
|
||||||
bucket: 'web-preview',
|
bucket: 'web-preview',
|
||||||
});
|
});
|
||||||
|
|
||||||
const baseBucketUrl = `http://web-preview.soyootech.com/`
|
const baseBucketUrl = `https://web-preview.soyootech.com/`
|
||||||
|
|
||||||
function getTenantPrefix () {
|
function getTenantPrefix () {
|
||||||
var tenant = utils.getTenant()
|
var tenant = utils.getTenant()
|
||||||
|
|
Loading…
Reference in New Issue