Commit 378be40a authored by 何娜's avatar 何娜

新版运营商迁移测试

parent 14d9d19e
Pipeline #21297 passed with stage
in 14 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, ctx } = this; const { readUrl, 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({
......
...@@ -63,10 +63,10 @@ module.exports = () => { ...@@ -63,10 +63,10 @@ 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: '/order', readUrl: '?type=phone&id=',
writeType: 'thxd', writeType: 'phone',
readDataKey: 'thxdData', readDataKey: 'thxdData',
}; };
...@@ -76,10 +76,10 @@ module.exports = () => { ...@@ -76,10 +76,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: 'thxd', signatureType: 'thxd',
customerUrl: '/customer/query', customerUrl: '/customer/query',
}; };
......
...@@ -53,10 +53,10 @@ module.exports = () => { ...@@ -53,10 +53,10 @@ module.exports = () => {
}; };
config.storageAPI = { config.storageAPI = {
host: process.env.STORAGEAPI_HOST || 'http://tv.51gjj.com:11252', host: 'https://lan-nginx.jianbing.com/mongo-service',
writeUrl: '/data', writeUrl: '',
readUrl: '/order', readUrl: '?type=phone&id=',
writeType: 'order', writeType: 'phone',
readDataKey: 'thxdData', readDataKey: 'thxdData',
}; };
...@@ -66,10 +66,10 @@ module.exports = () => { ...@@ -66,10 +66,10 @@ module.exports = () => {
}; };
config.signatureAPI = { config.signatureAPI = {
host: process.env.SIGNATUREAPI_HOST || 'http://tj3.51gjj.com:5118', host: 'https://lan-nginx.jianbing.com/customer-validation',
fetchTokenUrl: '/Access/GetToken', fetchTokenUrl: '/access/gettoken',
fetchOrderIdUrl: '/Order/GetOrderSn', fetchOrderIdUrl: '/order/getordersn',
signatureUrl: '/Access/SignValidityCheck', signatureUrl: '/access/signvaliditycheck',
signatureType: 'thxd', signatureType: 'thxd',
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