开始
BIN
__pycache__/application.cpython-35.pyc
Normal file
BIN
__pycache__/manager.cpython-35.pyc
Normal file
BIN
__pycache__/www.cpython-35.pyc
Normal file
BIN
common/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
common/libs/__pycache__/Helper.cpython-35.pyc
Normal file
BIN
common/libs/__pycache__/LogService.cpython-35.pyc
Normal file
BIN
common/libs/__pycache__/UploadService.cpython-35.pyc
Normal file
BIN
common/libs/__pycache__/UrlManager.cpython-35.pyc
Normal file
BIN
common/libs/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
common/libs/food/__pycache__/FoodService.cpython-35.pyc
Normal file
BIN
common/libs/member/__pycache__/CartService.cpython-35.pyc
Normal file
BIN
common/libs/member/__pycache__/MemberService.cpython-35.pyc
Normal file
BIN
common/libs/pay/__pycache__/PayService.cpython-35.pyc
Normal file
BIN
common/libs/pay/__pycache__/WeChatService.cpython-35.pyc
Normal file
BIN
common/libs/queue/__pycache__/QueueService.cpython-35.pyc
Normal file
BIN
common/libs/user/__pycache__/UserService.cpython-35.pyc
Normal file
BIN
common/libs/user/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
common/models/__pycache__/Dongtai_list.cpython-35.pyc
Normal file
BIN
common/models/__pycache__/Image.cpython-35.pyc
Normal file
BIN
common/models/__pycache__/Mendianusertwo.cpython-35.pyc
Normal file
BIN
common/models/__pycache__/User.cpython-35.pyc
Normal file
BIN
common/models/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
common/models/food/__pycache__/Food.cpython-35.pyc
Normal file
BIN
common/models/food/__pycache__/FoodCat.cpython-35.pyc
Normal file
BIN
common/models/food/__pycache__/FoodSaleChangeLog.cpython-35.pyc
Normal file
BIN
common/models/food/__pycache__/FoodStockChangeLog.cpython-35.pyc
Normal file
BIN
common/models/food/__pycache__/WxShareHistory.cpython-35.pyc
Normal file
BIN
common/models/log/__pycache__/AppAccessLog.cpython-35.pyc
Normal file
BIN
common/models/log/__pycache__/AppErrorLog.cpython-35.pyc
Normal file
18
common/models/member/Memberinfoo.py
Normal 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())
|
||||
18
common/models/member/Membermiya.py
Normal 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())
|
||||
18
common/models/member/Mendianuserinfo.py
Normal 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())
|
||||
16
common/models/member/Mendianusertwo.py
Normal 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)
|
||||
BIN
common/models/member/__pycache__/Member.cpython-35.pyc
Normal file
BIN
common/models/member/__pycache__/MemberAddress.cpython-35.pyc
Normal file
BIN
common/models/member/__pycache__/MemberCart.cpython-35.pyc
Normal file
BIN
common/models/member/__pycache__/MemberComments.cpython-35.pyc
Normal file
BIN
common/models/member/__pycache__/Memberinfoo.cpython-35.pyc
Normal file
BIN
common/models/member/__pycache__/Membermiya.cpython-35.pyc
Normal file
BIN
common/models/member/__pycache__/Mendianuserinfo.cpython-35.pyc
Normal file
BIN
common/models/member/__pycache__/Mendianusertwo.cpython-35.pyc
Normal file
BIN
common/models/member/__pycache__/OauthMemberBind.cpython-35.pyc
Normal file
BIN
common/models/pay/__pycache__/OauthAccessToken.cpython-35.pyc
Normal file
BIN
common/models/pay/__pycache__/PayOrder.cpython-35.pyc
Normal file
BIN
common/models/pay/__pycache__/PayOrderItem.cpython-35.pyc
Normal file
BIN
common/models/queue/__pycache__/QueueList.cpython-35.pyc
Normal file
BIN
common/models/stat/__pycache__/StatDailyFood.cpython-35.pyc
Normal file
BIN
common/models/stat/__pycache__/StatDailyMember.cpython-35.pyc
Normal file
BIN
common/models/stat/__pycache__/StatDailySite.cpython-35.pyc
Normal file
BIN
config/.production_setting.py.swp
Normal file
@@ -44,7 +44,7 @@ UPLOAD = {
|
||||
|
||||
APP = {
|
||||
# 'domain':'http://106.52.204.179:8999'
|
||||
'domain':'https://python815.cn'
|
||||
'domain':'https://python815.cn'
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
BIN
jobs/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
jobs/__pycache__/launcher.cpython-35.pyc
Normal file
@@ -5,3 +5,4 @@ flask-debugtoolbar
|
||||
flask_script
|
||||
requests
|
||||
|
||||
uwsgi
|
||||
@@ -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
|
||||
|
||||
BIN
web/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/__pycache__/chart.cpython-35.pyc
Normal file
BIN
web/controllers/__pycache__/index.cpython-35.pyc
Normal file
BIN
web/controllers/__pycache__/static.cpython-35.pyc
Normal file
BIN
web/controllers/account/__pycache__/Account.cpython-35.pyc
Normal file
BIN
web/controllers/account/__pycache__/__init__.cpython-35.pyc
Normal 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():
|
||||
|
||||
BIN
web/controllers/api/__pycache__/Address.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/Cart.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/Food.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/Jieshao.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/Member.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/My.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/Order.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/finance/__pycache__/Finance.cpython-35.pyc
Normal file
BIN
web/controllers/finance/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/food/__pycache__/Food.cpython-35.pyc
Normal file
BIN
web/controllers/food/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/furniture/__pycache__/Furniture.cpython-35.pyc
Normal file
BIN
web/controllers/furniture/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/member/__pycache__/Member.cpython-35.pyc
Normal file
BIN
web/controllers/member/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/stat/__pycache__/Stat.cpython-35.pyc
Normal file
BIN
web/controllers/stat/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/upload/__pycache__/Upload.cpython-35.pyc
Normal file
BIN
web/controllers/user/__pycache__/User.cpython-35.pyc
Normal file
BIN
web/controllers/user/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/interceptors/__pycache__/ApiAuthInterceptor.cpython-35.pyc
Normal file
BIN
web/interceptors/__pycache__/AuthInterceptor.cpython-35.pyc
Normal file
BIN
web/interceptors/__pycache__/ErrorInterceptor.cpython-35.pyc
Normal file
BIN
web/interceptors/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/static/upload/20190826/1904f230188b4776ae6c435e82bfb8fb.jpg
Normal file
|
After Width: | Height: | Size: 101 KiB |
BIN
web/static/upload/20190826/31e81fbc3c8a4a16a0176ffe1e7dbc2c.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
web/static/upload/20190826/34a3ff67a9d44256b6a12bd885b41b8b.jpg
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
web/static/upload/20190826/3584325acf8e4dfda3d7612887cd4f43.jpg
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
web/static/upload/20190826/39b73574e7824360a806887553b9c7d0.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
web/static/upload/20190826/403f6db990f24aef86273a52ea796f29.jpg
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
web/static/upload/20190826/49711bf5ce844c42913ee3cc0f075638.jpg
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
web/static/upload/20190826/49e0591ece164c3392fc92bfa34075dc.jpg
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
web/static/upload/20190826/526668cbcff44456be0903bf2e5441e1.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
web/static/upload/20190826/7949700d5d51408c8cfe60b68998a799.jpg
Normal file
|
After Width: | Height: | Size: 96 KiB |