init
This commit is contained in:
35
sdk_server/controllers/config/combo_config_controller.py
Normal file
35
sdk_server/controllers/config/combo_config_controller.py
Normal file
@@ -0,0 +1,35 @@
|
||||
from flask import Blueprint, jsonify
|
||||
from sdk_server.models.config.combo_config_data import ComboConfigRsp,QrEnabledApps,QrAppIcons
|
||||
|
||||
combo_config_blueprint = Blueprint('combo_config', __name__)
|
||||
|
||||
@combo_config_blueprint.route('/hkrpg_cn/combo/granter/api/getConfig', methods=['GET'])
|
||||
@combo_config_blueprint.route('/hkrpg_global/combo/granter/api/getConfig', methods=['GET'])
|
||||
def combo_config():
|
||||
response_data = ComboConfigRsp(
|
||||
retcode=0,
|
||||
message="OK",
|
||||
data=ComboConfigRsp.Data(
|
||||
protocol = True,
|
||||
qr_enabled = False,
|
||||
log_level = "INFO",
|
||||
announce_url = "",
|
||||
push_alias_type = 0,
|
||||
disable_ysdk_guard = True,
|
||||
enable_announce_pic_popup = False,
|
||||
app_name = "崩坏RPG",
|
||||
qr_enabled_apps=QrEnabledApps(
|
||||
bbs=False,
|
||||
cloud=False
|
||||
),
|
||||
qr_app_icons=QrAppIcons(
|
||||
app="",
|
||||
bbs="",
|
||||
cloud=""
|
||||
),
|
||||
qr_cloud_display_name="",
|
||||
enable_user_center=False,
|
||||
functional_switch_configs=[]
|
||||
)
|
||||
)
|
||||
return jsonify(response_data.model_dump())
|
||||
Reference in New Issue
Block a user