Use https

topwar
yityu 2024-06-01 15:45:57 +08:00
parent 5b951eb5df
commit a0a9f49548
3 changed files with 3 additions and 2 deletions

View File

@ -98,6 +98,7 @@ class App extends React.Component {
var { selectedProject } = this.state;
var settingValue = getProjectSettingValue(selectedProject?.Name) || [1, 1, 1];
var rawUrl = selectedProject?.HtmlUrl ? encodeURI(selectedProject?.HtmlUrl) : "";
rawUrl = rawUrl.replace("http:", () => "https:")
if (rawUrl) {
rawUrl += `?datanumber=${settingValue[0]}&datanumber1=${settingValue[1]}&datanumber2=${settingValue[2]}&lunaOrHtml=false`;
}

View File

@ -1,4 +1,4 @@
var BaseUrl = "http://api.soyootech.com/";
var BaseUrl = "https://api.soyootech.com/";
export async function UserLogin(loginForm) {
try {
var response = await fetch(BaseUrl + "SoyooUser/previewlogin", {

View File

@ -10,7 +10,7 @@ var client = new aliOss({
bucket: 'web-preview',
});
const baseBucketUrl = `http://web-preview.soyootech.com/`
const baseBucketUrl = `https://web-preview.soyootech.com/`
function getTenantPrefix () {
var tenant = utils.getTenant()