ass="del-code nl-40 ol-40"> 294
-    order_paid_success(order)
290
+    order.notify_msg = request.body
291
+    order.transaction_id = data.get('transaction_id', '')
292
+    order.save()
293
+
294
+    result_code = data.get('result_code', '')
295
+    if result_code == 'SUCCESS':
296
+        order_paid_success(order)
297
+    else:
298
+        order_paid_fail(order)
295 299
 
296 300
     return HttpResponse(WXPAY_NOTIFY_SUCCESS)
297 301
 

+ 2 - 0
requirements.txt

@@ -31,6 +31,8 @@ pywe-miniapp==1.0.0
31 31
 pywe-oauth==1.0.3
32 32
 pywe-pay==1.0.5
33 33
 pywe-response==1.0.1
34
+pywe-sign==1.0.5
35
+pywe-xml==1.0.0
34 36
 qiniu==7.1.4
35 37
 redis-extensions==1.0.50
36 38
 requests==2.18.1

kodo - Gogs: Go Git Service

Нет описания

Brightcells: 597ee33ba6 Pai2 => Kodo лет %!s(int64=8): %!d(string=назад)
..
migrations 3114315824 add pc official website лет %!s(int64=10): %!d(string=назад)
pc 356254dea5 Fix typo error лет %!s(int64=9): %!d(string=назад)
__init__.py 3114315824 add pc official website лет %!s(int64=10): %!d(string=назад)
admin.py fabef63211 set line_length=200 for isort лет %!s(int64=10): %!d(string=назад)
models.py fabef63211 set line_length=200 for isort лет %!s(int64=10): %!d(string=назад)
tests.py fabef63211 set line_length=200 for isort лет %!s(int64=10): %!d(string=назад)
views.py 597ee33ba6 Pai2 => Kodo лет %!s(int64=8): %!d(string=назад)