更新数据库链接

This commit is contained in:
RainSun 2021-08-02 18:59:33 +08:00
parent 52a8c5d1c8
commit a6d2eecd05

View File

@ -4,7 +4,7 @@ from pymongo import MongoClient
def col():
# 链接数据库
conn = MongoClient('mongodb://surl:K5r7LGrQmAU55W@10.99.0.4:27001/shortUrl')
return conn.surl['surl']
return conn.shortUrl['surl']
# 通过尾缀获取源地址
def getUrlByTail(tail):