摘要
这段代码是我们宝贵的前端页面,它的标题是“羊了个羊”。但是,我们需要将其中的“sheep.dkewl.com”改为您的后端服务域名,以便它能够与后端服务顺畅地交流。让我们一起修改,让这个页面更加完美!
正文
前端代码
页面标题修改
index.html
<title>羊了个羊 | 刀客源码网</title>
接口相关修改
/assets/resources/index.8b75c.js
第7877-7915行
主要将 sheep.dkewl.com 修改为您后端服务的域名
var n = t("./data-type")
, a = n.ENV.online
, i = {
local: {
evn: n.ENV.local,
host: "http://192.168.31.86:8080",
reportPrefix: "local_"
},
beta: {
evn: n.ENV.beta,
host: "http://192.144.195.86",
reportPrefix: "beta_"
},
online: {
evn: n.ENV.online,
host: "https://sheep.dkewl.com",
reportPrefix: "sheep_"
},
onlineWx: {
evn: n.ENV.onlineWx,
host: "https://sheep.dkewl.com",
reportPrefix: "sheep_wx_"
},
leiTing: {
evn: n.ENV.leiTing,
host: "http://maowgameos1.leiting.com:8080",
reportPrefix: ""
},
onlineOppo: {
evn: n.ENV.onlineOppo,
host: "https://sheep.dkewl.com",
reportPrefix: "sheep_oppo_"
},
onlineVivo: {
evn: n.ENV.onlineVivo,
host: "https://sheep.dkewl.com",
reportPrefix: "sheep_vivo_"
}
};
后端代码
后端是打包好的文件sps-0.0.1-SNAPSHOT.jar,您可以直接放到网站的目录中
我这里放到了/www/wwwroot/yanglegeyang/目录下

然后通过宝塔面板的java管理器进行运行
添加JAVA项目

选择我们的jar包

然后域名管理添加sheep.dkewl.com,同时配置SSL,这里的域名要和前面前端设置的域名一致,协议也要注意
如果开启了SSL则是https://sheep.dkewl.com,没开启则是http://sheep.dkewl.com
关注不迷路
扫码下方二维码,关注宇凡盒子公众号,免费获取最新技术内幕!

温馨提示:如果您访问和下载本站资源,表示您已同意只将下载文件用于研究、学习而非其他用途。

评论0