Commit e5cdd4a8 authored by tower's avatar tower

fff

parent 57022777
import {Injectable} from '@angular/core';
let Host = "172.30.220.22";
// let Host = "192.168.28.179";
let protocal = "http://";
@Injectable()
export class GlobalService {
bpServerHost: String = `${protocal}${Host}:3002`;
uploadServerHost: String = `${protocal}${Host}:3002`;
pipesServer: String = 'http://pipes.liangkebang.com';
authServer: String = 'http://login.liangkebang.com';
servers: any = {
pipes: this.pipesServer,
bp: this.bpServerHost,
uploadServerHost: this.uploadServerHost,
authServer: this.authServer
}
extend: Function = (s, t) => {
let ks = Object.keys(t)
for (let k of ks) {
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