开始
This commit is contained in:
BIN
web/controllers/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/__pycache__/chart.cpython-35.pyc
Normal file
BIN
web/controllers/__pycache__/chart.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/__pycache__/index.cpython-35.pyc
Normal file
BIN
web/controllers/__pycache__/index.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/__pycache__/static.cpython-35.pyc
Normal file
BIN
web/controllers/__pycache__/static.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/account/__pycache__/Account.cpython-35.pyc
Normal file
BIN
web/controllers/account/__pycache__/Account.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/account/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/account/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
@@ -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__/Address.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/api/__pycache__/Cart.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/Cart.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/api/__pycache__/Food.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/Food.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/api/__pycache__/Jieshao.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/Jieshao.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/api/__pycache__/Member.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/Member.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/api/__pycache__/My.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/My.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/api/__pycache__/Order.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/Order.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/api/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/api/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/finance/__pycache__/Finance.cpython-35.pyc
Normal file
BIN
web/controllers/finance/__pycache__/Finance.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/finance/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/finance/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/food/__pycache__/Food.cpython-35.pyc
Normal file
BIN
web/controllers/food/__pycache__/Food.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/food/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/food/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/furniture/__pycache__/Furniture.cpython-35.pyc
Normal file
BIN
web/controllers/furniture/__pycache__/Furniture.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/furniture/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/furniture/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/member/__pycache__/Member.cpython-35.pyc
Normal file
BIN
web/controllers/member/__pycache__/Member.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/member/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/member/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/stat/__pycache__/Stat.cpython-35.pyc
Normal file
BIN
web/controllers/stat/__pycache__/Stat.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/stat/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/stat/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/upload/__pycache__/Upload.cpython-35.pyc
Normal file
BIN
web/controllers/upload/__pycache__/Upload.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/user/__pycache__/User.cpython-35.pyc
Normal file
BIN
web/controllers/user/__pycache__/User.cpython-35.pyc
Normal file
Binary file not shown.
BIN
web/controllers/user/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
web/controllers/user/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user