|
|
@@ -28,12 +28,12 @@ logger = logging.getLogger('logit')
|
28
|
28
|
@transaction.atomic
|
29
|
29
|
def get_userinfo_api(request):
|
30
|
30
|
brand_id = request.POST.get('brand_id', settings.KODO_DEFAULT_BRAND_ID)
|
31
|
|
- appid = request.POST.get('appid', 'MINIAPP')
|
|
31
|
+ appId = request.POST.get('appId', 'MINIAPP')
|
32
|
32
|
|
33
|
33
|
if brand_id != settings.KODO_DEFAULT_BRAND_ID:
|
34
|
34
|
return response(ProductBrandStatusCode.BRAND_NOT_MATCH)
|
35
|
35
|
|
36
|
|
- wxcfg = WECHAT.get(appid, {})
|
|
36
|
+ wxcfg = WECHAT.get(appId, {})
|
37
|
37
|
|
38
|
38
|
appid = wxcfg.get('appID')
|
39
|
39
|
secret = wxcfg.get('appsecret')
|
|
|
@@ -100,12 +100,12 @@ def get_userinfo_api(request):
|
100
|
100
|
@transaction.atomic
|
101
|
101
|
def mini_login_api(request):
|
102
|
102
|
brand_id = request.POST.get('brand_id', settings.KODO_DEFAULT_BRAND_ID)
|
103
|
|
- appid = request.POST.get('appid', 'MINIAPP')
|
|
103
|
+ appId = request.POST.get('appId', 'MINIAPP')
|
104
|
104
|
|
105
|
105
|
if brand_id != settings.KODO_DEFAULT_BRAND_ID:
|
106
|
106
|
return response(ProductBrandStatusCode.BRAND_NOT_MATCH)
|
107
|
107
|
|
108
|
|
- wxcfg = WECHAT.get(appid, {})
|
|
108
|
+ wxcfg = WECHAT.get(appId, {})
|
109
|
109
|
|
110
|
110
|
appid = wxcfg.get('appID')
|
111
|
111
|
secret = wxcfg.get('appsecret')
|
|
|
@@ -174,12 +174,12 @@ def mini_login_api(request):
|
174
|
174
|
def get_userinfo_api2(request):
|
175
|
175
|
brand_id = request.POST.get('brand_id', settings.KODO_DEFAULT_BRAND_ID)
|
176
|
176
|
user_id = request.POST.get('user_id', '')
|
177
|
|
- appid = request.POST.get('appid', 'MINIAPP')
|
|
177
|
+ appId = request.POST.get('appId', 'MINIAPP')
|
178
|
178
|
|
179
|
179
|
if brand_id != settings.KODO_DEFAULT_BRAND_ID:
|
180
|
180
|
return response(ProductBrandStatusCode.BRAND_NOT_MATCH)
|
181
|
181
|
|
182
|
|
- wxcfg = WECHAT.get(appid, {})
|
|
182
|
+ wxcfg = WECHAT.get(appId, {})
|
183
|
183
|
|
184
|
184
|
appid = wxcfg.get('appID')
|
185
|
185
|
secret = wxcfg.get('appsecret')
|