初步完成merchant和admin不同role的展示内容逻辑2
This commit is contained in:
14
search_user_id.py
Normal file
14
search_user_id.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user