@@ -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: |
@@ -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 初始化 |