Procházet zdrojové kódy

四季采摘接口增加参数

yf_ymm před 5 roky
rodič
revize
763e6110c4
2 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 2 1
      apps/AppInfo/models.py
  2. 2 0
      apps/Equipment/views.py

+ 2 - 1
apps/AppInfo/models.py

@@ -593,7 +593,8 @@ class Sightsee_Info(models.Model):
     name = models.CharField(u'景点名字', max_length=20, blank=True, null=True)
     price = models.CharField(u'景点价格', max_length=20, blank=True, null=True)
     intro = models.CharField(u'景点简介',max_length=255, null=True, blank=True)
-    location = models.CharField(u'景点位置', max_length=50, blank=True, null=True)
+    location = models.CharField(u'经纬度', max_length=50, blank=True, null=True)
+    addr = models.CharField(u'景点位置', max_length=50, blank=True, null=True)
     sightsee_time = models.DateTimeField(u'景区开放时间',blank=True, null=True)
     sightsee_img = models.CharField(u'景点图片', max_length=200, blank=True, null=True)
     sightsee_tel = models.CharField(u'联系方式', max_length=20, blank=True, null=True)

+ 2 - 0
apps/Equipment/views.py

@@ -1335,6 +1335,7 @@ class Sightsee_Pub(ListView):
         sightsee_time = request.POST.get('time')
         # 位置
         location = request.POST.get('location')
+        addr = request.POST.get('addr')
         # 内容
         content = request.POST.get('content')
         # 简介
@@ -1346,6 +1347,7 @@ class Sightsee_Pub(ListView):
             sightsee_time=sightsee_time,
             sightsee_img=sightsee_img,
             sightsee_tel=sightsee_tel,
+            addr=addr,
             content=content,
             desc=desc)
         data = "0"