This commit is contained in:
rjb
2023-10-04 23:58:34 +08:00
parent 18d9a65aeb
commit 631bbf4569
127 changed files with 135 additions and 17 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,18 @@
# coding: utf-8
from sqlalchemy import Column, DateTime, Integer, String
from sqlalchemy.schema import FetchedValue
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Memberinfoo(db.Model):
__tablename__ = 'memberinfoo'
id = db.Column(db.Integer, primary_key=True)
nickname = db.Column(db.String(200), nullable=False, server_default=db.FetchedValue())
mobile = db.Column(db.String(100), nullable=False, server_default=db.FetchedValue())
storename = db.Column(db.String(200), nullable=False, server_default=db.FetchedValue())
updated_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())
created_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())

View File

@@ -0,0 +1,18 @@
# coding: utf-8
from sqlalchemy import Column, DateTime, Integer, String
from sqlalchemy.schema import FetchedValue
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Membermiya(db.Model):
__tablename__ = 'membermiya'
id = db.Column(db.Integer, primary_key=True)
nickname = db.Column(db.String(200), nullable=False, server_default=db.FetchedValue())
mobile = db.Column(db.String(11), nullable=False, server_default=db.FetchedValue())
token = db.Column(db.String(200), nullable=False, server_default=db.FetchedValue())
updated_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())
created_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())

View File

@@ -0,0 +1,18 @@
# coding: utf-8
from sqlalchemy import Column, DateTime, Integer, String
from sqlalchemy.schema import FetchedValue
from application import app,db
class Mendianuserinfo(db.Model):
__tablename__ = 'mendianuserinfo'
id = db.Column(db.Integer, primary_key=True)
nickname = db.Column(db.String(20), nullable=False, server_default=db.FetchedValue())
mobile = db.Column(db.String(20), nullable=False, server_default=db.FetchedValue())
storename = db.Column(db.String(20), nullable=False, server_default=db.FetchedValue())
updated_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())
created_time = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue())

View File

@@ -0,0 +1,16 @@
# coding: utf-8
from sqlalchemy import Column, Integer, String
from sqlalchemy.schema import FetchedValue
from flask_sqlalchemy import SQLAlchemy
from application import db
class Mendianusertwo(db.Model):
__tablename__ = 'mendianusertwo'
id = db.Column(db.Integer, primary_key=True, server_default=db.FetchedValue())
name = db.Column(db.String(100), nullable=False)
phone = db.Column(db.String(100), nullable=False)
storename = db.Column(db.String(100), nullable=False)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -44,7 +44,7 @@ UPLOAD = {
APP = {
# 'domain':'http://106.52.204.179:8999'
'domain':'https://python815.cn'
'domain':'https://python815.cn'
}

View File

@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*-
DEBUG = True
SQLALCHEMY_ECHO = True
SQLALCHEMY_DATABASE_URI = 'mysql://root:123456@127.0.0.1/food_db'
QLALCHEMY_ECHO = True
SQLALCHEMY_DATABASE_URI = 'mysql://root:~renjianbo0118mysql*&;@127.0.0.1/food_db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_ENCODING = "utf8mb4"
APP = {
# 'domain': 'http://106.52.204.179:8999'
'domain':'https://python815.cn'
'domain': 'http://106.52.204.179:8999'
# 'domain':'https://python815.cn'
}
RELEASE_VERSION="2019822001"

Binary file not shown.

Binary file not shown.

View File

@@ -5,3 +5,4 @@ flask-debugtoolbar
flask_script
requests
uwsgi

View File

@@ -1,17 +1,17 @@
[uwsgi]
#源码目录
chdir=/data/www/Order
chdir=/data/www/order
#python 虚拟环境
home=/data/www/python3_vir
module=manager
callable=app
master=true
processes=4
http=0.0.0.0:8889
http=0.0.0.0:8999
socket=/data/www/logs/order.sock
buffer-size=65535
pidfile=/data/www/logs/order.pid
chmod-socket=777
logfile-chmod=644
daemonize=/data/www/logs/order.log
static-map = /static=/data/www/Order/web/static
static-map = /static=/data/www/order/web/static

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -4,6 +4,9 @@ from flask import request,jsonify,g
from application import app,db
import requests,json
from common.models.member.Member import Member
from common.models.member.Mendianuserinfo import Mendianuserinfo
from common.models.member.Memberinfoo import Memberinfoo
from common.models.member.Membermiya import Membermiya
from common.models.member.OauthMemberBind import OauthMemberBind
from common.models.food.WxShareHistory import WxShareHistory
from common.libs.Helper import getCurrentDate
@@ -57,6 +60,50 @@ def login():
resp['data'] = {'token': token}
return jsonify(resp)
@route_api.route("/member/logintwo",methods = [ "GET","POST" ])
def logintwo():
resp = {'code': 200, 'msg': '操作成功~', 'data': {}}
req = request.values
app.logger.info(req)
name = req['name'] if 'name' in req else ''
app.logger.info(name)
phone = req['phone'] if 'phone' in req else 0
app.logger.info(phone)
storename = req['storename'] if 'storename' in req else ''
app.logger.info(storename)
name_info = Mendianuserinfo.query.filter_by(nickname=name).first()
if not name_info:
model_mendianuserinfo = Mendianuserinfo()
model_mendianuserinfo.nickname = name
model_mendianuserinfo.mobile = phone
model_mendianuserinfo.storename = storename
db.session.add(model_mendianuserinfo)
db.session.commit()
return jsonify(resp)
@route_api.route("/member/loginmiya",methods = [ "GET","POST" ])
def loginmiya():
resp = {'code': 200, 'msg': '操作成功~', 'data': {}}
req = request.values
app.logger.info(req)
name = req['nickname'] if 'nickname' in req else ''
app.logger.info(name)
mobile = req['mobile'] if 'mobile' in req else 0
app.logger.info(mobile)
token = req['token'] if 'token' in req else ''
app.logger.info(token)
miya_info = Membermiya.query.filter_by(nickname=name).first()
if not miya_info:
model_membermiya = Membermiya()
model_membermiya.nickname = name
model_membermiya.mobile = mobile
model_membermiya.token = token
db.session.add(model_membermiya)
db.session.commit()
return jsonify(resp)
@route_api.route("/member/check-reg",methods = [ "GET","POST" ])
def checkReg():

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Some files were not shown because too many files have changed in this diff Show More