|
|
@ -31,6 +31,13 @@ from dspt_api.util.mapi.seat_price import MapiSeatPrice |
|
|
|
from dspt_api.util.mapi.seat_lock_buy import MapiSeatLockBuy |
|
|
|
from dspt_api.util.mapi.seat_lock_buy import MapiSeatLockBuy |
|
|
|
from dspt_api.util.mapi.card_get_goods_price import MapiCardGetGoodsPrice |
|
|
|
from dspt_api.util.mapi.card_get_goods_price import MapiCardGetGoodsPrice |
|
|
|
from dspt_api.util.mapi.order_buy_goods import MapiOrderBuyGoods |
|
|
|
from dspt_api.util.mapi.order_buy_goods import MapiOrderBuyGoods |
|
|
|
|
|
|
|
from dspt_api.util.mapi.card_auth import MapiCardAuth |
|
|
|
|
|
|
|
from dspt_api.util.mapi.card_detail import MapiCardDetail |
|
|
|
|
|
|
|
from dspt_api.util.mapi.card_buy_info import MapiCardBuyInfo |
|
|
|
|
|
|
|
from dspt_api.util.mapi.order_tickets import MapiOrderTickets |
|
|
|
|
|
|
|
from dspt_api.util.mapi.card_recharge_log import MapiCardRechargeLog |
|
|
|
|
|
|
|
from dspt_api.util.mapi.order_list import MapiOrderList |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 通过api来匹配不同的接口文件获取推荐 |
|
|
|
# 通过api来匹配不同的接口文件获取推荐 |
|
|
|
# 返回推荐参数应该包含参数名,参数值,和是否勾选的状态 |
|
|
|
# 返回推荐参数应该包含参数名,参数值,和是否勾选的状态 |
|
|
@ -157,6 +164,30 @@ def suggest_params(member_type, api, env, cid, pid, ip, **kwargs): |
|
|
|
params = ApiSeatCheckCoupon(**data).get_suggestion() |
|
|
|
params = ApiSeatCheckCoupon(**data).get_suggestion() |
|
|
|
|
|
|
|
|
|
|
|
# 会员 |
|
|
|
# 会员 |
|
|
|
|
|
|
|
# 3.1.2 会员卡密码校验 |
|
|
|
|
|
|
|
if api == 'card/auth' and member_type == 'member': |
|
|
|
|
|
|
|
print('card/auth') |
|
|
|
|
|
|
|
params = MapiCardAuth(**data).get_suggestion() |
|
|
|
|
|
|
|
# 3.1.3 查询会员卡的详细信息 |
|
|
|
|
|
|
|
if api == 'card/detail' and member_type == 'member': |
|
|
|
|
|
|
|
print('card/detail') |
|
|
|
|
|
|
|
params = MapiCardDetail(**data).get_suggestion() |
|
|
|
|
|
|
|
# 3.1.4 获取会员卡某场次的购票信息 |
|
|
|
|
|
|
|
if api == 'card/buy-info' and member_type == 'member': |
|
|
|
|
|
|
|
print('card/buy-info') |
|
|
|
|
|
|
|
params = MapiCardBuyInfo(**data).get_suggestion() |
|
|
|
|
|
|
|
# 3.1.5 获取有效的未出票订单 |
|
|
|
|
|
|
|
if api == 'order/tickets' and member_type == 'member': |
|
|
|
|
|
|
|
print('order/tickets') |
|
|
|
|
|
|
|
params = MapiOrderTickets(**data).get_suggestion() |
|
|
|
|
|
|
|
# 3.1.6 查询会员卡充值记录 |
|
|
|
|
|
|
|
if api == 'card/recharge-log' and member_type == 'member': |
|
|
|
|
|
|
|
print('card/recharge-log') |
|
|
|
|
|
|
|
params = MapiCardRechargeLog(**data).get_suggestion() |
|
|
|
|
|
|
|
# 3.1.7 查询会员卡历史订单 |
|
|
|
|
|
|
|
if api == 'order/list' and member_type == 'member': |
|
|
|
|
|
|
|
print('order/list') |
|
|
|
|
|
|
|
params = MapiOrderList(**data).get_suggestion() |
|
|
|
# 3.2.6 获取场次座位状态 |
|
|
|
# 3.2.6 获取场次座位状态 |
|
|
|
if api == 'play/seat-status' and member_type == 'member': |
|
|
|
if api == 'play/seat-status' and member_type == 'member': |
|
|
|
print('play/seat-status') |
|
|
|
print('play/seat-status') |
|
|
@ -309,6 +340,30 @@ def suggest_params_timestamp(member_type, api, env, cid, pid, ip, **kwargs): |
|
|
|
_timestamps = ApiSeatCheckCoupon(**data).get_timestamp() |
|
|
|
_timestamps = ApiSeatCheckCoupon(**data).get_timestamp() |
|
|
|
|
|
|
|
|
|
|
|
# 会员 |
|
|
|
# 会员 |
|
|
|
|
|
|
|
# 3.1.2 会员卡密码校验 |
|
|
|
|
|
|
|
if api == 'card/auth' and member_type == 'member': |
|
|
|
|
|
|
|
print('card/auth') |
|
|
|
|
|
|
|
_timestamps = MapiCardAuth(**data).get_timestamp() |
|
|
|
|
|
|
|
# 3.1.3 查询会员卡的详细信息 |
|
|
|
|
|
|
|
if api == 'card/detail' and member_type == 'member': |
|
|
|
|
|
|
|
print('card/detail') |
|
|
|
|
|
|
|
_timestamps = MapiCardDetail(**data).get_timestamp() |
|
|
|
|
|
|
|
# 3.1.4 获取会员卡某场次的购票信息 |
|
|
|
|
|
|
|
if api == 'card/buy-info' and member_type == 'member': |
|
|
|
|
|
|
|
print('card/buy-info') |
|
|
|
|
|
|
|
_timestamps = MapiCardBuyInfo(**data).get_timestamp() |
|
|
|
|
|
|
|
# 3.1.5 获取有效的未出票订单 |
|
|
|
|
|
|
|
if api == 'order/tickets' and member_type == 'member': |
|
|
|
|
|
|
|
print('order/tickets') |
|
|
|
|
|
|
|
_timestamps = MapiOrderTickets(**data).get_timestamp() |
|
|
|
|
|
|
|
# 3.1.6 查询会员卡充值记录 |
|
|
|
|
|
|
|
if api == 'card/recharge-log' and member_type == 'member': |
|
|
|
|
|
|
|
print('card/recharge-log') |
|
|
|
|
|
|
|
_timestamps = MapiCardRechargeLog(**data).get_timestamp() |
|
|
|
|
|
|
|
# 3.1.7 查询会员卡历史订单 |
|
|
|
|
|
|
|
if api == 'order/list' and member_type == 'member': |
|
|
|
|
|
|
|
print('order/list') |
|
|
|
|
|
|
|
_timestamps = MapiOrderList(**data).get_timestamp() |
|
|
|
# 3.2.6 获取场次座位状态 |
|
|
|
# 3.2.6 获取场次座位状态 |
|
|
|
if api == 'play/seat-status' and member_type == 'member': |
|
|
|
if api == 'play/seat-status' and member_type == 'member': |
|
|
|
print('play/seat-status') |
|
|
|
print('play/seat-status') |
|
|
|