Merge branch 'master' of gitee.com:renjianbo0118/order
d
This commit is contained in:
BIN
common/models/member/__pycache__/DeviceInfo.cpython-39.pyc
Normal file
BIN
common/models/member/__pycache__/DeviceInfo.cpython-39.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -43,8 +43,8 @@ UPLOAD = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
APP = {
|
APP = {
|
||||||
# 'domain':'http://106.52.204.179:8999'
|
'domain':'http://106.52.204.179:8999'
|
||||||
'domain':'https://python815.cn'
|
# 'domain':'https://python815.cn'
|
||||||
}
|
}
|
||||||
|
|
||||||
PAY_STATUS_MAPPING = {
|
PAY_STATUS_MAPPING = {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
SQLALCHEMY_ECHO = True
|
SQLALCHEMY_ECHO = True
|
||||||
SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@127.0.0.1/food_db'
|
SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@127.0.0.1/food_db?charset=utf8mb4'
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
SQLALCHEMY_ENCODING = "utf8mb4"
|
SQLALCHEMY_ENCODING = "utf8mb4"
|
||||||
# RELEASE_VERSION = "20190730"
|
# RELEASE_VERSION = "20190730"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
QLALCHEMY_ECHO = True
|
QLALCHEMY_ECHO = True
|
||||||
SQLALCHEMY_DATABASE_URI = 'mysql://root:~renjianbo0118mysql*&;@127.0.0.1/food_db'
|
SQLALCHEMY_DATABASE_URI = 'mysql://root:~renjianbo0118mysql*&;@127.0.0.1/food_db?charset=utf8mb4'
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
SQLALCHEMY_ENCODING = "utf8mb4"
|
SQLALCHEMY_ENCODING = "utf8mb4"
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,8 @@ def deviceinfo():
|
|||||||
app.logger.info(weidu)
|
app.logger.info(weidu)
|
||||||
snnum = req['snnum'] if 'snnum' in req else ''
|
snnum = req['snnum'] if 'snnum' in req else ''
|
||||||
app.logger.info(snnum)
|
app.logger.info(snnum)
|
||||||
|
reg_ip = req['reg_ip'] if 'reg_ip' in req else ''
|
||||||
|
app.logger.info(reg_ip)
|
||||||
|
|
||||||
name_info = Deviceinfo.query.filter_by(nickname=nickname).first()
|
name_info = Deviceinfo.query.filter_by(nickname=nickname).first()
|
||||||
if not name_info:
|
if not name_info:
|
||||||
@@ -119,6 +121,7 @@ def deviceinfo():
|
|||||||
model_deviceinfo.jingdu = jingdu
|
model_deviceinfo.jingdu = jingdu
|
||||||
model_deviceinfo.weidu = weidu
|
model_deviceinfo.weidu = weidu
|
||||||
model_deviceinfo.snnum = snnum
|
model_deviceinfo.snnum = snnum
|
||||||
|
model_deviceinfo.reg_ip = reg_ip
|
||||||
db.session.add(model_deviceinfo)
|
db.session.add(model_deviceinfo)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
return jsonify(resp)
|
return jsonify(resp)
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user