Commit 2119ed9c authored by 何娜's avatar 何娜

测试

parent 76b7f741
Pipeline #21311 passed with stage
in 2 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;
...@@ -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: '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',
}; };
...@@ -70,10 +70,10 @@ module.exports = () => { ...@@ -70,10 +70,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',
}; };
......
...@@ -48,9 +48,9 @@ module.exports = () => { ...@@ -48,9 +48,9 @@ module.exports = () => {
}; };
config.storageAPI = { config.storageAPI = {
host: process.env.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',
}; };
...@@ -61,9 +61,9 @@ module.exports = () => { ...@@ -61,9 +61,9 @@ module.exports = () => {
}; };
config.signatureAPI = { config.signatureAPI = {
host: process.env.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',
......
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