Pārlūkot izejas kodu

fix: 修复回调

gatsby 3 nedēļas atpakaļ
vecāks
revīzija
d78a7b02af

+ 1 - 0
backend/app/plugin/module_payment/openapi/service.py

@@ -78,6 +78,7 @@ class OpenTransferService:
                 log.info("回调通知: 开放转账记录不存在, out_biz_no={}", transfer.out_biz_no)
                 return False
 
+            auth.tenant_id = open_data.tenant_id
             conf = await OpenConfService.get_conf_service(auth)
             if not conf:
                 log.info("回调通知: 开放转账配置不存在, tenant_id={}", auth.tenant_id)

+ 2 - 2
backend/tests/test_apikey_sign.py

@@ -16,8 +16,8 @@ class TestApiKeySign(unittest.TestCase):
         data = {
             "account_book_id": "2088480770941200",
             "amount": 1.00,
-            "order_title": "Apikey转账2",
-            "third_biz_no": "123424202604270022",
+            "order_title": "Apikey转账3",
+            "third_biz_no": "123424202604270033",
             "payee_info": {
                 "identity_type": "ALIPAY_ACCOUNT",
                 "name": "钱红武",