Skip to content

Commit db3290a

Browse files
committed
调整
1 parent ac2f46f commit db3290a

File tree

18 files changed

+16
-64
lines changed

18 files changed

+16
-64
lines changed

.idea/Python_scripts.iml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/apollo配置拉取/解析项目注册dubbo指定端口/dubbo_port.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,18 @@ def confUrl(env, appid, cname, ns):
3838
def getDubboPort(projectName, confPath, env):
3939
conf = configparser.ConfigParser()
4040
conf.read(confPath)
41-
appID = conf[projectName]["APOLLO_APP_ID"]
42-
nameSpace = conf[projectName]["APOLLO_NAMESPACE"]
41+
# appID = conf[projectName]["APOLLO_APP_ID"]
42+
appID = conf.get(projectName, "APOLLO_APP_ID")
43+
# nameSpace = conf[projectName]["APOLLO_NAMESPACE"]
44+
nameSpace = conf.get(projectName, "APOLLO_NAMESPACE")
4345
if not nameSpace:
4446
nameSpace = "application"
45-
clusterName = conf[projectName]["APOLLO_CLUSTER"]
47+
# clusterName = conf[projectName]["APOLLO_CLUSTER"]
48+
clusterName = conf.get(projectName, "APOLLO_CLUSTER")
4649
if not clusterName:
4750
clusterName = "default"
48-
dubboPortKey = conf[projectName]["APOLLO_DUBBO_PORT_KEY"]
51+
# dubboPortKey = conf[projectName]["APOLLO_DUBBO_PORT_KEY"]
52+
dubboPortKey = conf.get(projectName, "APOLLO_DUBBO_PORT_KEY")
4953
if not dubboPortKey:
5054
dubboPortKey = "dubbo.provider.port"
5155
if appID and nameSpace and clusterName:

Tools/monitor/monitor.py

-6.16 KB
Binary file not shown.

study notes/1.面向对象编程

-2.84 KB
Binary file not shown.

study notes/2.多态与封装

-1.68 KB
Binary file not shown.

sync_update_config/configUpdate.json

-57
This file was deleted.

sync_update_config/updateXml.py

-3.96 KB
Binary file not shown.

sync_update_config/update_config.rar

-1.82 KB
Binary file not shown.

照片合成/Image_compose.py

-1
This file was deleted.

照片合成/Mosaic.py

-7.15 KB
Binary file not shown.

照片合成/Resemble - 副本.py

-6.27 KB
Binary file not shown.

照片合成/histsimilar.py

-1.79 KB
Binary file not shown.

爬虫/12306抢票/wei_12306.py

-21.5 KB
Binary file not shown.

爬虫/movies_top250/douban_top250.py

-1.39 KB
Binary file not shown.
Binary file not shown.

爬虫/淘女郎/taobao_mm_test.py

-1.96 KB
Binary file not shown.

0 commit comments

Comments
 (0)