libushang 1 tháng trước cách đây
mục cha
commit
b22d5340d4
3 tập tin đã thay đổi với 12 bổ sung2 xóa
  1. 10 0
      config.py
  2. 1 1
      routers/api/yst/file.py
  3. 1 1
      routers/api/yst/yhpcsb.py

+ 10 - 0
config.py

@@ -75,6 +75,8 @@ class DevConfig(Settings):
     YZY_HOST = "https://xtbg.digitalgd.com.cn"
     YZY_API_ROOT = "http://19.15.0.128:8080"
 
+    
+
 
 class ProdConfig(Settings):
 
@@ -107,6 +109,10 @@ class ProdConfig(Settings):
         'password': 'c0b0Info@)!%',
         'db': 0
     }
+    
+    # 粤商通网关配置
+    YST_PASS_ID = "yst_mmsyjjzhyjxt"
+    YST_PASS_TOKEN = "d6t8rljIoEzMzOFIX5Y8FODhKZSmulwB"
 
 class StageConfig(Settings):
 
@@ -147,6 +153,10 @@ class StageConfig(Settings):
         'db': 0
     }
 
+    # 粤商通网关配置
+    YST_PASS_ID = "yst_mmsyjjzhyjxt"
+    YST_PASS_TOKEN = "3AtV4BRgyM8OFGJYlJWGQBhCeQwB0MhN"
+
 
 class FactoryConfig:
     """Returns a config instance dependending on the ENV_STATE variable."""

+ 1 - 1
routers/api/yst/file.py

@@ -127,7 +127,7 @@ def show(
             if os.path.exists(file_type_path) and os.path.isdir(file_type_path):
                 file_list = []
                 for file_name in os.listdir(file_type_path):
-                    file_list.append("/mmh5_yjxm_yst/ebus/yst_mmzhyj/api/yst/file/show?thumb=&file_name={}".format(file_name))    
+                    file_list.append("/mmh5_yjxm_yst/ebus/yst_mmsyjjzhyjxt/api/yst/file/show?thumb=&file_name={}".format(file_name))    
                 valueMap = {
                     'fileType': file_type,
                     'imageUrls': file_list

+ 1 - 1
routers/api/yst/yhpcsb.py

@@ -134,7 +134,7 @@ async def detail(
         imageUrls = []
         rows = db.query(YssYstUploadFileEntity).filter(and_(YssYstUploadFileEntity.bzid == bzid, YssYstUploadFileEntity.file_type == 'yyzz')).all()
         for row in rows:
-            imageUrls.append("/mmh5_yjxm_yst/ebus/yst_mmzhyj/api/yst/file/show?thumb=&file_name={}".format(row.file_name))
+            imageUrls.append("/mmh5_yjxm_yst/ebus/yst_mmsyjjzhyjxt/api/yst/file/show?thumb=&file_name={}".format(row.file_name))
 
         if len(imageUrls) > 0:
             qtFile.append({'fileName': '隐患点图片', 'imageUrls': imageUrls})