Skip to content

Commit 358212a

Browse files
committed
修改完成
1 parent 6d51849 commit 358212a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

api/index.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ class handler(BaseHTTPRequestHandler):
3030

3131
def do_GET(self):
3232
path = self.path
33-
pathreg = re.compile(r'/api?(.*?)')
34-
user = pathreg.findall(path)[0]
33+
user = path.split('?')[1]
3534
data = getdata(user)
3635
self.send_response(200)
3736
self.send_header('Content-type','application/json')

0 commit comments

Comments
 (0)