diff --git a/unipay/providers/transfer.py b/unipay/providers/transfer.py index 1ab43fe..70a5aa8 100644 --- a/unipay/providers/transfer.py +++ b/unipay/providers/transfer.py @@ -75,7 +75,7 @@ class TransferGateway(Gateway): async def new_tcode(self, sor): tcode = self.gen_mailcode() sql = "select * from transfercode where tcode=${tcode}$ and status='0'" - while True + while True: recs = await sor.sqlExe(sql, {'tcode': tcode}) if len(recs) == 0: break