Prechádzať zdrojové kódy

api 返回结果字段修改

zhangdongming 3 rokov pred
rodič
commit
7bc42541c2
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      Controller/SurveysController.py

+ 1 - 1
Controller/SurveysController.py

@@ -96,7 +96,7 @@ class SurveysView(View):
                 'endTime': time.strftime("%Y-%m-%d %H:%M:%S", endTime),
                 'endTime': time.strftime("%Y-%m-%d %H:%M:%S", endTime),
                 'isShow': result.is_show,
                 'isShow': result.is_show,
                 'isSubmit': submit,
                 'isSubmit': submit,
-                'page': 'http://192.168.136.192/surveys?token=' if result.is_show == 1 else ''
+                'page': '/surveys?token=' if result.is_show == 1 else ''
             }
             }
             return response.json(0, data)
             return response.json(0, data)
         except Exception as e:
         except Exception as e: