MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / return_message

Method return_message

class/theme_config.py:217–223  ·  view source on GitHub ↗

统一的消息返回函数

(status, msg, data=None)

Source from the content-addressed store, hash-verified

215
216 @staticmethod
217 def return_message(status, msg, data=None):
218 """统一的消息返回函数"""
219 return {
220 'msg': msg,
221 'data': data if data is not None else {},
222 'status': status
223 }
224
225 def __init__(self, config_file_path='/www/server/panel/data/panel_asset.json', auto_init=True):
226 """初始化主题配置管理器"""

Callers 15

validate_fieldMethod · 0.95
detect_missing_fieldsMethod · 0.95
validate_configMethod · 0.95
convert_legacy_configMethod · 0.95
get_configMethod · 0.95
save_configMethod · 0.95
update_configMethod · 0.95
export_theme_configMethod · 0.95

Calls

no outgoing calls

Tested by 2

test_path_detectionMethod · 0.76
test_domains_apiMethod · 0.64