初步完成merchant和admin不同role的展示内容逻辑2

This commit is contained in:
2026-03-12 16:07:38 +08:00
parent f19dd093bf
commit a81509e1fc
11 changed files with 124 additions and 39 deletions

14
search_user_id.py Normal file
View 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