gogs 提示更人性

pull/165/head
midoks 3 years ago
parent 3a278f4cc6
commit b94f302fbe
  1. 4
      plugins/gogs/index.py

@ -388,7 +388,7 @@ def postReceiveLog():
def getGogsConf(): def getGogsConf():
conf = getConf() conf = getConf()
if not os.path.exists(conf): if not os.path.exists(conf):
return mw.returnJson(False, "请先安装初始化!") return mw.returnJson(False, "请先安装初始化!<br/>默认地址:http://" + mw.getLocalIp() + ":3000")
gets = [ gets = [
{'name': 'DOMAIN', 'type': -1, 'ps': '服务器域名'}, {'name': 'DOMAIN', 'type': -1, 'ps': '服务器域名'},
@ -455,7 +455,7 @@ def userList():
conf = getConf() conf = getConf()
if not os.path.exists(conf): if not os.path.exists(conf):
return mw.returnJson(False, "请先安装初始化!") return mw.returnJson(False, "请先安装初始化!<br/>默认地址:http://" + mw.getLocalIp() + ":3000")
import math import math
args = getArgs() args = getArgs()

Loading…
Cancel
Save