Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.route("/www/index")
- @mobile_request # 使用decorator包装方法
- def get_user(**kwargs):
- user_info = kwargs['user_info'] # 取出decorator中封装好的user_info
- return db.get_user(user_info) # 利用user_info进行逻辑处理
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement