UNPKG

olympus-r-17plugins

Version:

A plugin of Olympus for 17zuoye.

121 lines (120 loc) 2.36 kB
import Environment from "olympus-r/engine/env/Environment"; /** * @author Raykid * @email initial_r@qq.com * @create date 2017-10-25 * @modify date 2017-10-25 * * 一起作业专属Environment */ export default class Environment17 extends Environment { /** * app名称 * * @type {string} * @memberof Environment17 */ app: string; /** * 主站域名 * * @type {string} * @memberof Environment17 */ domain: string; /** * 原生外壳版本 * * @type {string} * @memberof Environment17 */ nativeVersion: string; /** * 网络类型 * * @type {string} * @memberof Environment17 */ network: string; /** * 客户端类型 * * @type {string} * @memberof Environment17 */ clientType: string; /** * 客户端名称 * * @type {string} * @memberof Environment17 */ clientName: string; /** * 可能的session_key属性 * * @type {string} * @memberof Environment17 */ sessionKey: string; /** * 不知道是啥 * * @type {string} * @memberof Environment17 */ ktwelve: string; /** * uuid * * @type {string} * @memberof Environment17 */ uuid: string; /** * 用户id * * @type {string} * @memberof Environment17 */ userid: string; /** * 学生id * * @type {string} * @memberof Environment17 */ studentId: string; /** * 同env * * @type {string} * @memberof Environment17 */ readonly server_type: string; /** * envCode * * @readonly * @type {number} * @memberof Environment17 */ readonly envCode: number; initialize(app: string, testInitParams: any): void; } export declare class Network { static PC: string; static WIFI: string; static _2G: string; static _3G: string; static _4G: string; static NONE: string; } export declare enum EnvCode { dev = 0, test = 1, staging = 2, prod = 3 } /** 再额外导出一个单例 */ export declare const environment17: Environment17;