...
|
...
|
@@ -3,15 +3,15 @@ |
|
|
* @author: xiaoxiao<xiaoxiao.hao@yoho.cn>
|
|
|
* @date: 2018/01/4
|
|
|
*/
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
const request = require('request-promise');
|
|
|
const querystring = require('querystring');
|
|
|
|
|
|
const index = (req, res, next) => {
|
|
|
const miniapp = (req, res, next) => {
|
|
|
return request({
|
|
|
url: `${global.yoho.config.domains.api}wechat/miniapp/img-check.jpg?${querystring.stringify(req.query)}`,
|
|
|
baseUrl: global.yoho.config.domains.api,
|
|
|
uri: 'wechat/miniapp/img-check.jpg',
|
|
|
qs: req.query,
|
|
|
headers: {
|
|
|
'X-request-ID': req.reqID || '',
|
|
|
'X-YOHO-IP': req.yoho.clientIp || '',
|
...
|
...
|
@@ -22,5 +22,5 @@ const index = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
|
index
|
|
|
miniapp
|
|
|
}; |
...
|
...
|
|