|
@@ -957,6 +957,11 @@ class CloudStorageView(View):
|
|
def do_pay_by_wechat_callback(self, request_dict, response):
|
|
def do_pay_by_wechat_callback(self, request_dict, response):
|
|
result_code = request_dict.get('result_code', None)
|
|
result_code = request_dict.get('result_code', None)
|
|
|
|
|
|
|
|
+ # 获取参数
|
|
|
|
+ response = ResponseObject()
|
|
|
|
+ asy = threading.Thread(target=ModelService.add_log,
|
|
|
|
+ args=('回调',
|
|
|
|
+ '回调', '进来了,微信支付成功回调' ))
|
|
if result_code == 'SUCCESS':
|
|
if result_code == 'SUCCESS':
|
|
response = HttpResponse()
|
|
response = HttpResponse()
|
|
check_sign = WechatPayObject.get_notifypay(request_dict)
|
|
check_sign = WechatPayObject.get_notifypay(request_dict)
|
|
@@ -1135,13 +1140,13 @@ class CloudStorageView(View):
|
|
notify_url="{SERVER_DOMAIN_SSL}cloudstorage/dowechatnotify".format(
|
|
notify_url="{SERVER_DOMAIN_SSL}cloudstorage/dowechatnotify".format(
|
|
SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
# 获取参数
|
|
# 获取参数
|
|
- print("进来了,微信支付成功回调")
|
|
|
|
response = ResponseObject()
|
|
response = ResponseObject()
|
|
asy = threading.Thread(target=ModelService.add_log,
|
|
asy = threading.Thread(target=ModelService.add_log,
|
|
args=(orderID,
|
|
args=(orderID,
|
|
orderID, '进来了,微信支付创建订单'+notify_url))
|
|
orderID, '进来了,微信支付创建订单'+notify_url))
|
|
asy.start()
|
|
asy.start()
|
|
price = float(price)*100
|
|
price = float(price)*100
|
|
|
|
+ self.callback_dostatus(orderID)
|
|
parameter_dict = pay.get_parameter(orderID, content, price, ip, notify_url)
|
|
parameter_dict = pay.get_parameter(orderID, content, price, ip, notify_url)
|
|
print('parameter_dict', parameter_dict)
|
|
print('parameter_dict', parameter_dict)
|
|
# parameter_dict 参数中获取MWEB_URL 调转页面在路径后面添加redirect_url
|
|
# parameter_dict 参数中获取MWEB_URL 调转页面在路径后面添加redirect_url
|