Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhanyu committed Mar 2, 2023
1 parent f47cbdb commit 1f0459c
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
from flask import Flask, request
from wechatpy import parse_message
from wechatpy.replies import TextReply
import os

from flask import Flask

app = Flask(__name__)

@app.route('/')
def index():
return 'hello world!'
def hello_world():
return '欢迎使用微信云托管!'

if __name__ == "__main__":
app.run(debug=True,host='0.0.0.0',port=int(os.environ.get('PORT', 80)))



# @app.route('/message/post', methods=['GET', 'POST'])
Expand All @@ -30,5 +34,5 @@ def index():
# return reply.render()


if __name__ == "__main__":
app.run(debug=True,host='0.0.0.0',port=int(os.environ.get('PORT', 80)))
# if __name__ == "__main__":
# app.run(debug=True,host='0.0.0.0',port=int(os.environ.get('PORT', 80)))

0 comments on commit 1f0459c

Please sign in to comment.