15 lines
608 B
Python
15 lines
608 B
Python
import os
|
|
for root, dirs, files in os.walk(r'd:\骅锋\mall'):
|
|
if 'node_modules' in root or '.git' in root or 'unpackage' in root: continue
|
|
for f in files:
|
|
if f.endswith(('.uts', '.uvue')):
|
|
path = os.path.join(root, f)
|
|
with open(path, 'r', encoding='utf-8') as file:
|
|
try:
|
|
lines = file.readlines()
|
|
for i, l in enumerate(lines):
|
|
if 'setStorageSync' in l and 'user_id' in l:
|
|
print(f'{path}:{i+1}: {l.strip()}')
|
|
except:
|
|
pass
|