iff-0c64fd3c3047981a83957278d8f56422f8993ceaL74">74
76
|
remark = models.CharField(_(u'remark'), max_length=255, blank=True, null=True, help_text=u'备注')
|
|
75
|
77
|
|
|
|
78
|
+ test_user = models.BooleanField(_(u'test_user'), default=False, help_text=_(u'是否为测试用户'), db_index=True)
|
|
|
79
|
+
|
|
76
|
80
|
class Meta:
|
|
77
|
81
|
verbose_name = _(u'saleclerksubmitloginfo')
|
|
78
|
82
|
verbose_name_plural = _(u'saleclerksubmitloginfo')
|
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+# -*- coding: utf-8 -*-
|
|
|
2
|
+# Generated by Django 1.11.11 on 2018-04-17 02:31
|
|
|
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', '0012_auto_20180401_2012'),
|
|
|
12
|
+ ]
|
|
|
13
|
+
|
|
|
14
|
+ operations = [
|
|
|
15
|
+ migrations.AddField(
|
|
|
16
|
+ model_name='consumeinfosubmitloginfo',
|
|
|
17
|
+ name='test_user',
|
|
|
18
|
+ field=models.BooleanField(db_index=True, default=False, help_text='\u662f\u5426\u4e3a\u6d4b\u8bd5\u7528\u6237', verbose_name='test_user'),
|
|
|
19
|
+ ),
|
|
|
20
|
+ ]
|
|
|
|
@@ -223,6 +223,8 @@ class ConsumeInfoSubmitLogInfo(BaseModelMixin):
|
|
223
|
223
|
|
|
224
|
224
|
verifyResult = models.IntegerField(_(u'verifyResult'), default=0, help_text=u'验证结果')
|
|
225
|
225
|
|
|
|
226
|
+ test_user = models.BooleanField(_(u'test_user'), default=False, help_text=_(u'是否为测试用户'), db_index=True)
|
|
|
227
|
+
|
|
226
|
228
|
class Meta:
|
|
227
|
229
|
verbose_name = _(u'消费者信息提交记录')
|
|
228
|
230
|
verbose_name_plural = _(u'消费者信息提交记录')
|
|
|
|
@@ -70,6 +70,7 @@ def clerk_sale_submit_api(request):
|
|
70
|
70
|
lat=lat,
|
|
71
|
71
|
lon=lon,
|
|
72
|
72
|
image=file_path,
|
|
|
73
|
+ test_user=clerk.test_user,
|
|
73
|
74
|
)
|
|
74
|
75
|
|
|
75
|
76
|
if SaleclerkIntegralIncomeExpensesInfo.objects.filter(code=serialNo, status=True).exists():
|
|
|
|
@@ -103,6 +104,7 @@ def clerk_sale_submit_api(request):
|
|
103
|
104
|
image=file_path,
|
|
104
|
105
|
integral=integral,
|
|
105
|
106
|
left_integral=clerk.total_integral,
|
|
|
107
|
+ test_user=clerk.test_user,
|
|
106
|
108
|
)
|
|
107
|
109
|
|
|
108
|
110
|
return response(200, data={
|
|
|
|
@@ -221,6 +223,7 @@ def clerk_sale_submit_api_bak(request):
|
|
221
|
223
|
code=code,
|
|
222
|
224
|
integral=product.integral,
|
|
223
|
225
|
left_integral=clerk.integral,
|
|
|
226
|
+ test_user=clerk.test_user,
|
|
224
|
227
|
)
|
|
225
|
228
|
|
|
226
|
229
|
return response(200, 'Submit Success', u'提交成功', {})
|
|
|
|
@@ -24,7 +24,7 @@ django-rlog==1.0.7
|
|
24
|
24
|
django-shortuuidfield==0.1.3
|
|
25
|
25
|
django-six==1.0.4
|
|
26
|
26
|
django-uniapi==1.0.1
|
|
27
|
|
-django-we==1.2.1
|
|
|
27
|
+django-we==1.2.3
|
|
28
|
28
|
djangorestframework==3.7.7
|
|
29
|
29
|
furl==1.0.1
|
|
30
|
30
|
hiredis==0.2.0
|