1234567891011121314151617181920 |
- """
- @author: luojunhui
- """
- import pyapollos
- def getDevConfig():
- """
- 从apollo获取config文件
- :return:
- """
- apollo_connection = pyapollos.ApolloClient(
- app_id="Touliu_Server",
- config_server_url="http://devapolloconfig-internal.piaoquantv.com/",
- timeout=10
- )
- response = {
- "test_key": apollo_connection.get_value("test_key")
- }
- return response
|