update notify_url_api

FFIB 5 lat temu
rodzic
commit
61a3a16f23
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2 4
      live/views.py

+ 2 - 4
live/views.py

@@ -46,8 +46,6 @@ def room_goods_detail(request):
46 46
         'anchor_id': room_goods_info.anchor_id,
47 47
       })
48 48
 
49
-WECHAT = settings.WECHAT
50
-
51 49
 def room_anchor_details(request):
52 50
     room_id = request.POST.get('room_id', '')
53 51
 
@@ -242,8 +240,8 @@ def notify_url_api(request):
242 240
 
243 241
     result_code = notify_data.get('result_code', '')
244 242
     if result_code == 'SUCCESS':
245
-        live_views.order_paid_success(order)
243
+        order_paid_success(order)
246 244
     else:
247
-        live_views.order_paid_fail(order)
245
+        order_paid_fail(order)
248 246
 
249 247
     return HttpResponse(WXPAY_NOTIFY_SUCCESS)