Showing
2 changed files
with
8 additions
and
2 deletions
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | const _ = require('lodash'); | 3 | const _ = require('lodash'); |
4 | -const ImAPI = global.yoho.ImAPI; | ||
5 | const crypto = global.yoho.crypto; | 4 | const crypto = global.yoho.crypto; |
5 | +const config = global.yoho.config; | ||
6 | + | ||
7 | +const ImAPI = new global.yoho.ApiBase(config.domains.imApi, { | ||
8 | + name: 'im', | ||
9 | + cache: global.yoho.cache, | ||
10 | + useCache: false | ||
11 | +}); | ||
6 | 12 | ||
7 | const encryptedUid = uid => crypto.encryption(null, uid + ''); | 13 | const encryptedUid = uid => crypto.encryption(null, uid + ''); |
8 | 14 |
@@ -40,7 +40,7 @@ | @@ -40,7 +40,7 @@ | ||
40 | "request-promise": "^3.0.0", | 40 | "request-promise": "^3.0.0", |
41 | "serve-favicon": "^2.3.0", | 41 | "serve-favicon": "^2.3.0", |
42 | "uuid": "^2.0.3", | 42 | "uuid": "^2.0.3", |
43 | - "yoho-node-lib": "0.1.30", | 43 | + "yoho-node-lib": "^0.2.0", |
44 | "yoho-zookeeper": "^1.0.4" | 44 | "yoho-zookeeper": "^1.0.4" |
45 | }, | 45 | }, |
46 | "devDependencies": { | 46 | "devDependencies": { |
-
Please register or login to post a comment