tanghongbin 5 năm trước cách đây
mục cha
commit
5336b43e3d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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