From 4f61f48cc4f15b195499c999e92a8be7d2a1a7b9 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 15 Jul 2026 17:58:47 +0800 Subject: [PATCH] fix(transfer): str+int TypeError in gen_mailcode --- unipay/providers/transfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unipay/providers/transfer.py b/unipay/providers/transfer.py index d2de4ab..b409cb1 100644 --- a/unipay/providers/transfer.py +++ b/unipay/providers/transfer.py @@ -128,7 +128,7 @@ class TransferGateway(Gateway): def gen_mailcode(self): c = '1' for i in range(6): - c += randint(0,9) + c += str(randint(0,9)) return c def run(self):