|
@@ -958,10 +958,15 @@ class CloudStorageView(View):
|
|
result_code = request_dict.get('result_code', None)
|
|
result_code = request_dict.get('result_code', None)
|
|
result_codetwo = request.POST.dict()
|
|
result_codetwo = request.POST.dict()
|
|
logger = logging.getLogger('log')
|
|
logger = logging.getLogger('log')
|
|
- logger.info(result_code)
|
|
|
|
|
|
+
|
|
logger.info(request.body)
|
|
logger.info(request.body)
|
|
|
|
+ data = json.loads(request.body)
|
|
|
|
+ logger.info(data)
|
|
|
|
+
|
|
|
|
+ result_code = data.get('return_code')
|
|
try:
|
|
try:
|
|
if result_code == 'SUCCESS':
|
|
if result_code == 'SUCCESS':
|
|
|
|
+ logger.info('微信回调返回值 进来了。')
|
|
check_sign = WechatPayObject.get_notifypay(request_dict)
|
|
check_sign = WechatPayObject.get_notifypay(request_dict)
|
|
if not check_sign:
|
|
if not check_sign:
|
|
return HttpResponse(WechatPayObject.xml_to_dict({'return_code': 'FAIL', 'return_msg': '签名失败'}))
|
|
return HttpResponse(WechatPayObject.xml_to_dict({'return_code': 'FAIL', 'return_msg': '签名失败'}))
|