api_relay.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:raspberry_exp_board 作者: Moisesbr 项目源码 文件源码
def estado_dos_reles():
   token = request.forms.get('token')
   valid_token = verify_auth_token(token)
   if valid_token == True:
      theBody = come_back_reles()
      return HTTPResponse(status=200, body=theBody)
   else:
      theBody = json.dumps({'401': 'Unauthorized'}) # you seem to want a JSON response
      return HTTPResponse(status=401, body=theBody)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号