>
-    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

Нет описания

huangqimin001: 945761de88 :art: Conpon2 лет %!s(int64=5): %!d(string=назад)
..
management 945761de88 :art: Conpon2 лет %!s(int64=5): %!d(string=назад)
migrations b95db9c5c3 Basic gis command лет %!s(int64=8): %!d(string=назад)
__init__.py b95db9c5c3 Basic gis command лет %!s(int64=8): %!d(string=назад)
admin.py b95db9c5c3 Basic gis command лет %!s(int64=8): %!d(string=назад)
apps.py b95db9c5c3 Basic gis command лет %!s(int64=8): %!d(string=назад)
models.py b95db9c5c3 Basic gis command лет %!s(int64=8): %!d(string=назад)
tests.py b95db9c5c3 Basic gis command лет %!s(int64=8): %!d(string=назад)
views.py b95db9c5c3 Basic gis command лет %!s(int64=8): %!d(string=назад)