# Function: getServerEnvironment
▸ getServerEnvironment(params?: GetServerEnvironmentParams): Promise‹typeof __type›
获取当前服务器的环境
deprecated 使用 serverFreeSystem.getServerEnvironment 替代;该 API 将于 0.4 中移除。
# 参数:
| 属性 | 类型 |
|---|---|
params? | GetServerEnvironmentParams |
GetServerEnvironmentParams
| 属性 | 类型 | 描述 |
|---|---|---|
complete? | Method | 操作完成时(成功或失败),均会调用该回调函数 |
fail? | Method | 操作失败时,调用该回调函数 |
success? | Method | 操作成功时,调用该回调函数 |
# 返回值:
Promise‹typeof __type›