Commit 76b7f741 authored by 何娜's avatar 何娜

还原

parent 392db97a
Pipeline #21309 passed with stage
in 2 seconds
...@@ -44,14 +44,14 @@ class StorageService extends Service { ...@@ -44,14 +44,14 @@ class StorageService extends Service {
async read(orderId, appKey) { async read(orderId, appKey) {
const { readUrl, readDataKey, ctx } = this; const { readUrl, readDataKey, ctx } = this;
const result = await this._request(`${readUrl}${orderId}`, { const result = await this._request(`${readUrl}/${orderId}`, {
method: 'get', method: 'get',
contentType: 'json', contentType: 'json',
}); });
ctx.logger.info(`【Storage】read url:${readUrl}${orderId} write result:`, JSON.stringify(result.data)); ctx.logger.info(`【Storage】read url:${readUrl}/${orderId} write result:`, JSON.stringify(result.data));
if (result && result.data && result.data.code !== 0) { if (result && result.data && result.data.code !== 0) {
ctx.logger.error(`storageAPI read ${readUrl}${orderId}`, JSON.stringify(result.data)); ctx.logger.error(`storageAPI read ${readUrl}/${orderId}`, JSON.stringify(result.data));
ctx.throw(400, { message: result.data.msg }); ctx.throw(400, { message: result.data.msg });
} }
await ctx.model.Cusdata.create({ await ctx.model.Cusdata.create({
......
...@@ -57,9 +57,9 @@ module.exports = () => { ...@@ -57,9 +57,9 @@ module.exports = () => {
}; };
config.storageAPI = { config.storageAPI = {
host: 'https://uat-nginx.jianbing.com/mongo-service/data', host: 'http://tv.51gjj.com:11252',
writeUrl: '', writeUrl: '/data',
readUrl: '?type=gjj&id=', readUrl: '/gjj',
writeType: 'gjj', writeType: 'gjj',
readDataKey: 'gjjData', readDataKey: 'gjjData',
}; };
...@@ -70,10 +70,10 @@ module.exports = () => { ...@@ -70,10 +70,10 @@ module.exports = () => {
}; };
config.signatureAPI = { config.signatureAPI = {
host: 'https://uat-nginx.jianbing.com/customer-validation', host: 'http://tj3.51gjj.com:5118',
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',
}; };
......
...@@ -48,9 +48,9 @@ module.exports = () => { ...@@ -48,9 +48,9 @@ module.exports = () => {
}; };
config.storageAPI = { config.storageAPI = {
host: 'https://uat-nginx.jianbing.com/mongo-service/data', host: process.env.STORAGEAPI_HOST || 'http://tv.51gjj.com:11252',
writeUrl: '', writeUrl: '/data',
readUrl: '?type=gjj&id=', readUrl: '/gjj',
writeType: 'gjj', writeType: 'gjj',
readDataKey: 'gjjData', readDataKey: 'gjjData',
}; };
...@@ -61,10 +61,10 @@ module.exports = () => { ...@@ -61,10 +61,10 @@ module.exports = () => {
}; };
config.signatureAPI = { config.signatureAPI = {
host: 'https://uat-nginx.jianbing.com/customer-validation', host: process.env.SIGNATUREAPI_HOST || 'http://tj3.51gjj.com:5118',
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',
}; };
......
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