Commit 64f79fc0 authored by tower's avatar tower

edit

parent 5846513a
import { Injectable } from '@angular/core'; import {Injectable} from '@angular/core';
let Host = "172.30.220.22"; let Host = "172.30.220.22";
// let Host = "192.168.28.179"; // let Host = "192.168.28.179";
let protocal = "http://"; let protocal = "http://";
@Injectable() @Injectable()
export class GlobalService { export class GlobalService {
bpServerHost: String = `${protocal}${Host}:3002`; bpServerHost: String = `${protocal}${Host}:3002`;
uploadServerHost: String = `${protocal}${Host}:3002`; uploadServerHost: String = `${protocal}${Host}:3002`;
pipesServer: String = 'http://pipes.liangkebang.com'; pipesServer: String = 'http://pipes.liangkebang.com';
authServer: String = `http://login.liangkebang.com`; authServer: String = 'http://login.liangkebang.com';
extend: Function = (s, t) => { servers: any = {
pipes: this.pipesServer,
bp: this.bpServerHost,
uploadServerHost: this.uploadServerHost,
authServer: this.authServer
}
extend: Function = (s, t) => {
let ks = Object.keys(t) let ks = Object.keys(t)
for (let k of ks) { for (let k of ks) {
s[k] = JSON.parse(JSON.stringify(t[k])) s[k] = JSON.parse(JSON.stringify(t[k]))
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment