diff --git a/README.md b/README.md index 340129f53ee46d62278690034626c30e94b41696..6c6281c822969fed10ebc90aecd6994078a46470 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ 基于语义化版本号控制。 -0.0.1 +0.2.0 #### 软件架构 diff --git a/SourceCode/HaoGeProject/index.html b/SourceCode/HaoGeProject/index.html new file mode 100644 index 0000000000000000000000000000000000000000..58d07cf2cd403a8926c2adf9cfc329c1118a9e17 --- /dev/null +++ b/SourceCode/HaoGeProject/index.html @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + Document + + +
{{ info }}
+ + + diff --git a/SourceCode/flaskProject/.idea/vcs.xml b/SourceCode/flaskProject/.idea/vcs.xml new file mode 100644 index 0000000000000000000000000000000000000000..b2bdec2d71b6a5ce4ae49efc37516809c50e4d5e --- /dev/null +++ b/SourceCode/flaskProject/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/SourceCode/flaskProject/collect_url.py b/SourceCode/flaskProject/collect_url.py index fe6bb905c725a932a223a8c5f58afc4443d501aa..f29d14ab6e9d41d76d0e991d00bf7b76b1323ea8 100644 --- a/SourceCode/flaskProject/collect_url.py +++ b/SourceCode/flaskProject/collect_url.py @@ -1,5 +1,7 @@ -from flask import Flask, redirect, url_for, request, render_template +from flask import Flask, redirect, url_for, request, render_template, jsonify +from flask_cors import CORS, cross_origin import time +import json collecter = Flask(__name__) @@ -15,8 +17,10 @@ def success(name): @collecter.route('/time') +@cross_origin() def re_time(): - return str(time.asctime(time.localtime(time.time()))) + _response = jsonify({"time": str(time.asctime(time.localtime(time.time())))}) + return _response @collecter.route('/login', methods=['post', 'GET']) diff --git a/SourceCode/flaskProject/serverStart.bat b/SourceCode/flaskProject/serverStart.bat new file mode 100644 index 0000000000000000000000000000000000000000..5182b9b416cea7e67d998102c3b413a54a8d5a1f --- /dev/null +++ b/SourceCode/flaskProject/serverStart.bat @@ -0,0 +1 @@ +python collect_url.py