提交 69cd8c15a4a94d76da3bd1b1ad409b5360a0dd30

作者 juvenile
1 个父辈 b133cea7

tijiao

... ... @@ -33,15 +33,15 @@ exports = module.exports = function () {
33 33 },
34 34 restful: {
35 35 // url: 'http://118.178.181.180:20000/',
36   - // url: 'http://47.110.250.177:20000/',
37   - url: 'http://47.110.158.110:20000/',
  36 + url: 'http://47.110.250.177:20000/',
  37 + // url: 'http://47.110.158.110:20000/',
38 38 // url:'http://120.27.220.60:20000/',
39 39 // url: 'http://39.104.52.206:20000/',
40 40 // url: 'http://47.99.189.12:20000/',
41 41 ossUrl: 'http://47.110.250.177:20000/',
42 42 version: '/v1',
43   - // host: '47.110.250.177',
44   - host: '47.110.158.110',
  43 + host: '47.110.250.177',
  44 + // host: '47.110.158.110',
45 45 // host: '120.27.220.60',
46 46 // host: '39.104.52.206',
47 47 port: 20000
... ...
... ... @@ -14,8 +14,7 @@ exports = module.exports = function (logger, rest, settings) {
14 14 function getImg(req, res, next) {
15 15 logger.info(req.url, "1231231231");
16 16 const parentdir = path.resolve(__dirname, "..")
17   - console.log(parentdir)
18   - const paths = parentdir+'/build/public'+req.url
  17 + const paths = parentdir+'/build/public'+urlencode.decode(req.url, 'utf8')
19 18 fs.readFile(paths,function(err,data){
20 19 console.log(err,data)
21 20 if (err) {
... ...
... ... @@ -19,7 +19,7 @@
19 19 "express": "^4.13.4",
20 20 "fs": "0.0.2",
21 21 "helmet": "^1.3.0",
22   - "igloo": "git+http://gitlab.workai.com.cn/zanghb/igloo.git",
  22 + "igloo": "git+https://gitee.com/zang_haibin/igloo.git",
23 23 "method-override": "^2.3.5",
24 24 "moment": "^2.12.0",
25 25 "nodemon": "^2.0.15",
... ...
... ... @@ -170,6 +170,13 @@ exports = module.exports = function (IoC, policies, settings) {
170 170
171 171 router.get("/getShortToken", controller.getShortToken);
172 172
  173 + router.get("/gainianrenli/*",controller.getImg)
  174 + router.get("/waifu_img/*",controller.getImg)
  175 + router.get("/my_img/*",controller.getImg)
  176 + router.get("/invoice_file_icon/*",controller.getImg)
  177 + router.get("/gainianrenli/*",controller.getImg)
  178 + router.get("/claim_icons/*",controller.getImg)
  179 +
173 180 app.use("/", router);
174 181
175 182 app.use("/index", router2);
... ...
注册登录 后发表评论