@@ -144,4 +144,5 @@ def decrypt(request): |
||
144 | 144 |
'has_unexpired_activity': has_unexpired_activity, |
145 | 145 |
'coupon_info': coupon_info, |
146 | 146 |
'redpack_info': elog.redpack_info if elog else {}, |
147 |
+ 'integral': model.integral, |
|
147 | 148 |
}) |
@@ -110,6 +110,8 @@ class BrandInfo(BaseModelMixin): |
||
110 | 110 |
brand_logo = models.ImageField(_(u'brand_logo'), upload_to=upload_path, blank=True, null=True, help_text=u'品牌商标') |
111 | 111 |
brand_domain = models.CharField(_(u'brand_domain'), max_length=255, blank=True, null=True, help_text=u'品牌域名') |
112 | 112 |
|
113 |
+ clerk_direct_submit = models.BooleanField(_(u'clerk_direct_submit'), default=False, help_text=u'销售员直接提交') |
|
114 |
+ |
|
113 | 115 |
position = models.IntegerField(_(u'position'), default=1, help_text=u'排序') |
114 | 116 |
|
115 | 117 |
class Meta: |
@@ -9,6 +9,7 @@ from django_response import response |
||
9 | 9 |
from paginator import pagination |
10 | 10 |
from TimeConvert import TimeConvert as tc |
11 | 11 |
|
12 |
+from api.encrypt_views import decrypt |
|
12 | 13 |
from account.models import UserInfo |
13 | 14 |
from logs.models import MchInfoDecryptLogInfo, MchInfoEncryptLogInfo |
14 | 15 |
from integral.models import SaleclerkIntegralIncomeExpensesInfo, SaleclerkSubmitLogInfo |
@@ -63,6 +64,9 @@ def clerk_sale_decrypt_api(request): |
||
63 | 64 |
if brand and brand.brand_id != brand_id: |
64 | 65 |
return response(ProductBrandStatusCode.BRAND_NOT_MATCH) |
65 | 66 |
|
67 |
+ if not brand.clerk_direct_submit: |
|
68 |
+ return decrypt(request) |
|
69 |
+ |
|
66 | 70 |
try: |
67 | 71 |
model = ModelInfo.objects.get(pk=model_pk) |
68 | 72 |
except ModelInfo.DoesNotExist: |