brand_id

Kimi.Huang лет %!s(int64=6): %!d(string=назад)
Родитель
Сommit
1feebf798e
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      page/oauth_views.py
  2. 1 1
      utils/shells/tests.py

+ 1 - 1
page/oauth_views.py

@@ -91,7 +91,7 @@ def clerk_submit_api(request):
91 91
     openid = request.POST.get('openid', '')
92 92
     phone = request.POST.get('phone', '')
93 93
 
94
-    if SaleclerkInfo.objects.filter(clerk_phone=phone).exclude(unionid=unionid).exists():
94
+    if SaleclerkInfo.objects.filter(brand_id=brand_id, clerk_phone=phone).exclude(unionid=unionid).exists():
95 95
         return response(SaleclerkStatusCode.CLERK_PHONE_ALREADY_EXISTS)
96 96
 
97 97
     try:

+ 1 - 1
utils/shells/tests.py

@@ -7,7 +7,7 @@ from pywe_pay import WeChatPay
7 7
 WECHAT = settings.WECHAT
8 8
 
9 9
 
10
-def test_pay(openid, amount, trade_type='JSAPI', pay_type='PACKET'):
10
+def test_pay(openid, amount=100, trade_type='JSAPI', pay_type='PACKET'):
11 11
     # 根据 trade_type 获取 wechat 配置
12 12
     wxcfg = WECHAT.get(trade_type, {})
13 13
     # WeChatPay 初始化