Commit b832937b authored by 何娜's avatar 何娜

gjjAPI 迁移

parent 255cfab7
Pipeline #22626 passed with stage
in 5 seconds
...@@ -36,7 +36,7 @@ class StorageService extends Service { ...@@ -36,7 +36,7 @@ class StorageService extends Service {
}); });
ctx.logger.info(`【Storage】write url:${writeUrl} params`, JSON.stringify({ ...data, serviceType: writeType }), 'result:', JSON.stringify(result.data)); ctx.logger.info(`【Storage】write url:${writeUrl} params`, JSON.stringify({ ...data, serviceType: writeType }), 'result:', JSON.stringify(result.data));
if (result.data.code !== '0') { if (result.data.code !== '0' || result.data.code !== 0) {
throw new Error('存储数据出错'); throw new Error('存储数据出错');
} }
return; return;
......
...@@ -52,9 +52,9 @@ module.exports = () => { ...@@ -52,9 +52,9 @@ module.exports = () => {
config.cityListAPI = 'http://ts2.51gjj.com:4831/gjjServices/queryGjjCitySettings'; config.cityListAPI = 'http://ts2.51gjj.com:4831/gjjServices/queryGjjCitySettings';
config.storageAPI = { config.storageAPI = {
host: 'http://tv.51gjj.com:11252', host: 'https://uat-nginx.jianbing.com/mongo-service/data',
writeUrl: '/data', writeUrl: '',
readUrl: '/gjj', readUrl: '?type=gjj&id=',
writeType: 'gjj', writeType: 'gjj',
readDataKey: 'gjjData', readDataKey: 'gjjData',
}; };
...@@ -65,10 +65,10 @@ module.exports = () => { ...@@ -65,10 +65,10 @@ module.exports = () => {
}; };
config.signatureAPI = { config.signatureAPI = {
host: 'http://tj3.51gjj.com:5118', host: 'https://uat-nginx.jianbing.com/customer-validation',
fetchTokenUrl: '/Access/GetToken', fetchTokenUrl: '/access/gettoken',
fetchOrderIdUrl: '/Order/GetOrderSn', fetchOrderIdUrl: '/order/getordersn',
signatureUrl: '/Access/SignValidityCheck', signatureUrl: '/access/signvaliditycheck',
signatureType: 'gjj', signatureType: 'gjj',
customerUrl: '/customer/query', customerUrl: '/customer/query',
}; };
......
...@@ -47,9 +47,9 @@ module.exports = () => { ...@@ -47,9 +47,9 @@ module.exports = () => {
}; };
config.storageAPI = { config.storageAPI = {
host: process.env.STORAGEAPI_HOST || 'http://tv.51gjj.com:11252', host: process.env.STORAGEAPI_HOST,
writeUrl: '/data', writeUrl: '',
readUrl: '/gjj', readUrl: '?type=gjj&id=',
writeType: 'gjj', writeType: 'gjj',
readDataKey: 'gjjData', readDataKey: 'gjjData',
}; };
...@@ -62,11 +62,10 @@ module.exports = () => { ...@@ -62,11 +62,10 @@ module.exports = () => {
}; };
config.signatureAPI = { config.signatureAPI = {
host: process.env.SIGNATUREAPI_HOST || 'http://tj3.51gjj.com:5118', host: process.env.SIGNATUREAPI_HOST,
fetchTokenUrl: '/Access/GetToken', fetchTokenUrl: '/access/gettoken',
fetchOrderIdUrl: '/Order/GetOrderSn', fetchOrderIdUrl: '/order/getordersn',
signatureUrl: '/Access/SignValidityCheck', signatureUrl: '/Access/SignValidityCheck',
fetchParnterUrl: '',
signatureType: 'gjj', signatureType: 'gjj',
customerUrl: '/customer/query', customerUrl: '/customer/query',
}; };
......
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