Selaa lähdekoodia

查询阿里提现的时候修改CODE

zjl 1 vuosi sitten
vanhempi
commit
d2d140d11f
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      apps/web/core/payment/ali.py

+ 5 - 1
apps/web/core/payment/ali.py

@@ -280,7 +280,11 @@ class AliPayWithdrawGateway(WithdrawGateway, AlipayMixin):
         查询银行卡提现的返回结果
         :return:
         """
-        result = self.client.api_alipay_fund_trans_common_query(out_biz_no = order_no, product_code = product_code)
+        app = self.app
+
+        payer_info, withdraw_product_code, withdraw_biz_scene = app.withdraw_payer_info, app.withdraw_product_code(True), app.withdraw_biz_scene(True)
+
+        result = self.client.api_alipay_fund_trans_common_query(out_biz_no = order_no, product_code = withdraw_product_code, biz_scene = withdraw_biz_scene)
         if result['code'] == u'10000':
             return AlipayWithdrawQueryResult(result)
         elif result['code'] == u'40004':