Browse Source

微信支付成功后,没调用到回调2

chenshibin 4 years ago
parent
commit
5d6bcf6c38
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Controller/CloudStorage.py

+ 3 - 1
Controller/CloudStorage.py

@@ -952,6 +952,7 @@ class CloudStorageView(View):
         response = ResponseObject()
         asy = threading.Thread(target=ModelService.add_log,
                                args=(CommonService.get_ip_address( request_dict.get('out_trade_no',None)), request_dict.get('out_trade_no',None), '进来了,微信支付成功回调'))
+        asy.start()
         if result_code == 'SUCCESS':
             response = HttpResponse()
             check_sign = WechatPayObject.get_notifypay(request_dict)
@@ -1121,7 +1122,8 @@ class CloudStorageView(View):
         elif pay_type == 3:
             pay = WechatPayObject()
             notify_url="{SERVER_DOMAIN_SSL}cloudstorage/dowechatnotify".format(
-                SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
+                SERVER_DOMAIN_SSL=SERVER_DOMAIN)
+            # notify_url = "http://192.168.136.103/cloudstorage/doalicallback"
             # 获取参数
             price = float(price)*100
             parameter_dict = pay.get_parameter(orderID, content, price, ip, notify_url)