소스 검색

Merge remote-tracking branch 'remotes/origin/Bin' into dev

tanghongbin 5 년 전
부모
커밋
62b32c1027
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Controller/FAQController.py

+ 2 - 2
Controller/FAQController.py

@@ -68,7 +68,7 @@ class FAQUploadView(View):
                     file_name = images[str(fileName)]
                     index = file_name.find('static/')
                     filePath = file_name[index:]
-                    if SERVER_TYPE != "Ansjer.formal_settings":
+                    if SERVER_TYPE == "Ansjer.formal_settings":
                         filePath = 'http://www.dvema.com/faq/image/' + filePath
                     else:
                         filePath = 'http://test.www.dvema.com/faq/image/' + filePath
@@ -106,7 +106,7 @@ class FAQUploadView(View):
         else:
             index = file_name.find('static/')
             filePath = file_name[index:]
-            if SERVER_TYPE != "Ansjer.formal_settings":
+            if SERVER_TYPE == "Ansjer.formal_settings":
                 filePath = 'http://www.dvema.com/faq/image/' + filePath
             else:
                 filePath = 'http://test.www.dvema.com/faq/image/' + filePath