long => lon

Brightcells 7 gadi atpakaļ
vecāks
revīzija
e04f95dc5e
3 mainītis faili ar 28 papildinājumiem un 3 dzēšanām
  1. 1 1
      api/mch_views.py
  2. 25 0
      mch/migrations/0009_auto_20180129_0426.py
  3. 2 2
      mch/models.py

+ 1 - 1
api/mch_views.py

@@ -125,7 +125,7 @@ def consumer_info_api(request):
125 125
         iv=iv,
126 126
         encryptedData=encryptedData,
127 127
         lat=lat,
128
-        lon=long,
128
+        lon=lon,
129 129
         serialNo=serialNo,
130 130
         verifyResult=verifyResult,
131 131
     )

+ 25 - 0
mch/migrations/0009_auto_20180129_0426.py

@@ -0,0 +1,25 @@
1
+# -*- coding: utf-8 -*-
2
+# Generated by Django 1.11.9 on 2018-01-28 20:26
3
+from __future__ import unicode_literals
4
+
5
+from django.db import migrations, models
6
+
7
+
8
+class Migration(migrations.Migration):
9
+
10
+    dependencies = [
11
+        ('mch', '0008_auto_20180129_0422'),
12
+    ]
13
+
14
+    operations = [
15
+        migrations.AlterField(
16
+            model_name='consumeinfosubmitloginfo',
17
+            name='encryptedData',
18
+            field=models.CharField(blank=True, help_text='encryptedData', max_length=255, null=True, verbose_name='encryptedData'),
19
+        ),
20
+        migrations.AlterField(
21
+            model_name='consumeinfosubmitloginfo',
22
+            name='iv',
23
+            field=models.CharField(blank=True, help_text='iv', max_length=255, null=True, verbose_name='iv'),
24
+        ),
25
+    ]

+ 2 - 2
mch/models.py

@@ -195,8 +195,8 @@ class ConsumeInfoSubmitLogInfo(BaseModelMixin):
195 195
     user_id = models.CharField(_(u'user_id'), max_length=32, blank=True, null=True, help_text=u'用户唯一标识', db_index=True)
196 196
 
197 197
     phone = models.CharField(_(u'phone'), max_length=11, blank=True, null=True, help_text=u'用户手机', db_index=True)
198
-    iv = models.CharField(_(u'iv'), max_length=11, blank=True, null=True, help_text=u'iv')
199
-    encryptedData = models.CharField(_(u'encryptedData'), max_length=11, blank=True, null=True, help_text=u'encryptedData')
198
+    iv = models.CharField(_(u'iv'), max_length=255, blank=True, null=True, help_text=u'iv')
199
+    encryptedData = models.CharField(_(u'encryptedData'), max_length=255, blank=True, null=True, help_text=u'encryptedData')
200 200
 
201 201
     lat = models.FloatField(_(u'lat'), default=1.0, help_text=u'纬度')
202 202
     lon = models.FloatField(_(u'lon'), default=1.0, help_text=u'经度')