Browse Source

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

tanghongbin 5 years ago
parent
commit
62b32c1027
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/FAQController.py

+ 2 - 2
Controller/FAQController.py

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