Skip to content

Commit

Permalink
Merge pull request #673 from midoks/dev
Browse files Browse the repository at this point in the history
低版本兼容
  • Loading branch information
midoks authored Dec 25, 2024
2 parents aaa8019 + af85245 commit 06d3375
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions web/static/app/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,8 @@ function syncDeleteSite(dataList,successCount,errorMsg,path){
* @param {Int} id 网站ID
*/
function domainEdit(id, name, msg, status) {
$.post('/site/get_domain' ,{pid:id}, function(domain) {
$.post('/site/get_domain' ,{pid:id}, function(data) {
var domain = data.data;

var echoHtml = "";
for (var i = 0; i < domain.length; i++) {
Expand Down Expand Up @@ -2806,7 +2807,8 @@ function phpVersion(siteName){
layer.msg(version.msg,{icon:5});
return;
}
$.post('/site/get_php_version',function(rdata){
$.post('/site/get_php_version',function(data){
var rdata = data.data;
var versionSelect = "<div class='webEdit-box'>\
<div class='line'>\
<span class='tname' style='width:100px'>PHP版本</span>\
Expand Down
2 changes: 1 addition & 1 deletion web/utils/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def getDefaultSite(self):
# 获取域名列表
def getDomain(self, site_id):
data = thisdb.getDomainBySiteId(site_id)
return data
return mw.returnData(True, 'ok', data)

# 获取日志内容
def getLogs(self, siteName):
Expand Down

0 comments on commit 06d3375

Please sign in to comment.