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.

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 526 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 KiB