更新电信脚本

This commit is contained in:
weiqun
2024-10-11 23:07:12 +08:00
parent 85f9a77ea2
commit 08da65c49e

View File

@@ -79,7 +79,7 @@ jp = {"9":{},"12":{},"13":{},"23":{}}
try:
with open('电信金豆换话费.log') as fr:
with open('telecom_doudou.log') as fr:
dhjl = json.load(fr)
except:
dhjl = {}
@@ -276,7 +276,7 @@ def exchange(phone,s,title,aid, uid):
send(uid, msg)
if phone not in dhjl[yf][title]:
dhjl[yf][title] += "#"+phone
with open('电信金豆换话费.log', 'w') as f:
with open('telecom_doudou.log', 'w') as f:
json.dump(dhjl, f, ensure_ascii=False)