pbl_compiler/wwwroot/api/pbl_script_rule_list.dspy
2026-09-19 10:00:33 +08:00

15 lines
778 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
# pbl_script_rule_list.dspy —— M3b 已导出规则行pbl_script_rule, script_type=1分页查询。
# 契约实现pbl_compiler/rules_export_api.py::script_rule_list_contract
# 入参page, rows|page_size, blueprint_id, game_def_id, rules_hash, event_type
debug(f'pbl_script_rule_list.dspy: START params_kw={dict(params_kw)}')
try:
_kw = dict(params_kw or {})
_res = await pbl_script_rule_list(**_kw)
return json.dumps(_res, ensure_ascii=False, default=str)
except Exception as _e:
debug('pbl_script_rule_list.dspy: ERROR ' + str(_e))
return json.dumps({'status': 'error', 'code': 'E_DSPY_SCRIPT_RULE_LIST',
'message': str(_e), 'data': None},
ensure_ascii=False, default=str)