:bug: Fix Bug: error.message was deprecated in Python 2.6 and removed in Python 3

huangqimin %!s(int64=5) %!d(string=hace) años
padre
commit
ecae93df3f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pay/views.py

+ 1 - 1
pay/views.py

@@ -114,7 +114,7 @@ def wx_order_create_api(request):
114 114
             openid=user.openid,  # 可选,用户在商户appid下的唯一标识。trade_type=JSAPI,此参数必传
115 115
         )
116 116
     except WeChatPayException as e:
117
-        order.unifiedorder_result = e.message
117
+        order.unifiedorder_result = e.args
118 118
         order.save()
119 119
         return response(OrderStatusCode.WX_UNIFIED_ORDER_FAIL)
120 120