开始
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 |
BIN
web/static/upload/20190826/83eefc03190b4faf80d103a2ca41391a.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
web/static/upload/20190826/862798656ab84ef780b6c383ef375750.jpg
Normal file
|
After Width: | Height: | Size: 354 KiB |
BIN
web/static/upload/20190826/a3f2523c495840059d36e70a6ce1c4c2.jpg
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
web/static/upload/20190826/b1c12175c62046c0b65414e07c5ddf7c.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
web/static/upload/20190826/db217518c3c84c8595949ec928125fc4.jpg
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
web/static/upload/20190826/df657ad7fa5a424d97a239010a2d0c42.jpg
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
web/static/upload/20190826/fe2d8459e87b47539b44457148d51c23.jpg
Normal file
|
After Width: | Height: | Size: 448 KiB |
BIN
web/static/upload/20201126/518bd0358a0a466589599e1d584b11ff.jpg
Normal file
|
After Width: | Height: | Size: 292 KiB |
BIN
web/static/upload/20201126/6390f894ba734616a455c5af861e76e6.jpg
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
web/static/upload/20201126/775179d5d4aa4208afda10c6d2741a7e.jpg
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
web/static/upload/20201126/b6c4efc9301b436389d7e43ddf44d3e5.jpg
Normal file
|
After Width: | Height: | Size: 775 KiB |
BIN
web/static/upload/20201126/f02f34a06f224b3586966a1292a146c5.jpg
Normal file
|
After Width: | Height: | Size: 276 KiB |
BIN
web/static/upload/20201126/f5fe82a70b1b404e8086b178165b4bf3.jpg
Normal file
|
After Width: | Height: | Size: 547 KiB |
BIN
web/static/upload/20201126/f98e6e501d9948a5af4d9b1fa21eebec.jpg
Normal file
|
After Width: | Height: | Size: 276 KiB |
BIN
web/static/upload/20220221/2237419971c54f7a97ea6d58046af2fc.jpg
Normal file
|
After Width: | Height: | Size: 107 KiB |
BIN
web/static/upload/20220221/2ecf7238ae2c45dbb725ef8a23428f1b.png
Normal file
|
After Width: | Height: | Size: 260 KiB |
BIN
web/static/upload/20220221/3a0ee9f111a2474184b9ea26c3613f36.png
Normal file
|
After Width: | Height: | Size: 367 KiB |
BIN
web/static/upload/20220221/4f43c734b8cd4e7791c58de02ba0c491.jpg
Normal file
|
After Width: | Height: | Size: 107 KiB |
BIN
web/static/upload/20220221/5ec938a2c3ef476d939a25c5db1a2b9e.png
Normal file
|
After Width: | Height: | Size: 286 KiB |
BIN
web/static/upload/20220221/7ee3c71cdd194acdb94bbf2a8bd49955.png
Normal file
|
After Width: | Height: | Size: 513 KiB |
BIN
web/static/upload/20220221/84cd3644bc2b4bbaa63fde2f7c7ca94c.png
Normal file
|
After Width: | Height: | Size: 204 KiB |
BIN
web/static/upload/20220221/c7b48cbce1a5404e96fe67ae46800350.png
Normal file
|
After Width: | Height: | Size: 443 KiB |
BIN
web/static/upload/20220221/caffc3c495634895b3526e14a03c84d1.png
Normal file
|
After Width: | Height: | Size: 443 KiB |
BIN
web/static/upload/20220221/ed68e06cbde545d58d42ef0f5153f210.png
Normal file
|
After Width: | Height: | Size: 272 KiB |
BIN
web/static/upload/20220221/fb16237913fd47918d0f1ef8f4703e1f.png
Normal file
|
After Width: | Height: | Size: 260 KiB |
BIN
web/static/upload/20220226/7a5a2fb40dfb4005a469c3109598a47b.png
Normal file
|
After Width: | Height: | Size: 526 KiB |
BIN
web/static/upload/20220226/7a8dae400263430095a3eb4a471e2592.png
Normal file
|
After Width: | Height: | Size: 505 KiB |