Commit 9a13b017 authored by 何娜's avatar 何娜

订单号

parent 6efc49dc
Pipeline #5855 passed with stage
in 2 seconds
......@@ -3,16 +3,11 @@
const Controller = require('egg').Controller;
class PartnerController extends Controller {
// constructor(ctx) {
// super(ctx);
// }
async show() {
const { ctx, service } = this;
const { appKey } = ctx.params;
const ret = await service.partner.fetchTheme(appKey);
if (ret && ret.id === appKey) {
if (ret && ret.appKey === appKey) {
ctx.success(ret);
return;
}
......
'use strict';
module.exports = () => {
const config = exports = {};
config.debug = true;
const config = exports = {};
config.debug = true;
config.projectRootPath = '/taxh5';
config.projectRootPath = '/taxh5';
config.redis = {
client: {
port: 6379,
host: '116.62.55.137',
password: 'DEV8redis',
db: 0,
},
};
config.taskAPI = {
host: 'http://tm.51gjj.com:6824',
fetchHubsUrl: '',
createTaskUrl: '/IncomeTax/createItTask',
fetchCodeUrl: '/IncomeTax/getItCode',
submitTaskUrl: '/IncomeTax/loginItWeb',
fetchTaskUrl: '/IncomeTax/getItData',
cityConfigUrl: '/IncomeTax/getItSetting'
};
config.redis = {
client: {
port: 6379,
host: '116.62.55.137',
password: 'DEV8redis',
db: 0,
},
};
config.taskAPI = {
host: 'http://tm.51gjj.com:6824',
fetchHubsUrl: '',
createTaskUrl: '/IncomeTax/createItTask',
fetchCodeUrl: '/IncomeTax/getItCode',
submitTaskUrl: '/IncomeTax/loginItWeb',
fetchTaskUrl: '/IncomeTax/getItData',
cityConfigUrl: '/IncomeTax/getItSetting'
};
config.partnerAPI = {
host: 'https://dev-nginx.jianbing.com/zeus-api/v1',
fetchTheme: '/chaos/theme',
fetchScripts: '/chaos/partners/scripts',
redisThemePrefix: 'URANUS.It.PARNTERS.THEME',
redisScriptsPrefix: 'URANUS.It.PARNTERS.SCRIPTS',
};
config.partnerAPI = {
host: 'https://dev-nginx.jianbing.com/zeus-api/v1',
fetchTheme: '/chaos/theme',
fetchScripts: '/chaos/partners/scripts',
fetchAgreements: '/chaos/agreements',
fetchInfo: '/chaos/partner',
redisThemePrefix: 'URANUS.IT.PARNTERS.THEME',
redisScriptsPrefix: 'URANUS.IT.PARNTERS.SCRIPTS',
redisAgreementsPrefix: 'URANUS.IT.PARNTERS.Agreements',
redisInfoPrefix: 'URANUS.IT.PARNTERS.Info',
};
config.scriptsAPI = {
host: 'https://dev-nginx.jianbing.com/zeus-api/v1',
fetchScriptsUrl: '/chaos/it/two_dimension_array/queries',
fetchOneScriptUrl: '/chaos/it/two_dimension_array/info',
fetchParamsInfoUrl: '/chaos/it/login_param_map',
fetchQueryButtonUrl: '/chaos/it/query_button',
fetchHelpUrl: '/chaos/it/help',
fetchNoticeUrl: '/chaos/it/notice',
fetchHubSeriptsUrl: '/chaos/it/hubs',
fetchScriptByCityNameUrl: '/chaos/it/city_scripts',
redisScriptsKey: 'URANUS.IT.SCRIPTS',
redisParamsKey: 'URANUS.IT.PARAMS',
};
config.scriptsAPI = {
host: 'https://dev-nginx.jianbing.com/zeus-api/v1',
fetchScriptsUrl: '/chaos/it/two_dimension_array/queries',
fetchOneScriptUrl: '/chaos/it/two_dimension_array/info',
fetchParamsInfoUrl: '/chaos/it/login_param_map',
fetchQueryButtonUrl: '/chaos/it/query_button',
fetchHelpUrl: '/chaos/it/help',
fetchNoticeUrl: '/chaos/it/notice',
fetchHubSeriptsUrl: '/chaos/it/hubs',
fetchScriptByCityNameUrl: '/chaos/it/city_scripts',
redisScriptsKey: 'URANUS.IT.SCRIPTS',
redisParamsKey: 'URANUS.IT.PARAMS',
};
config.storageAPI = {
host: 'http://tv.51gjj.com:11252',
writeUrl: '/data',
readUrl: '/IncomeTax',
writeType: 'incomeTax',
readDataKey: 'incometaxData',
};
config.storageAPI = {
host: 'http://tv.51gjj.com:11252',
writeUrl: '/data',
readUrl: '/IncomeTax',
writeType: 'incomeTax',
readDataKey: 'incometaxData',
};
config.washAPI = {
host: '',
washUrl: '',
};
config.washAPI = {
host: '',
washUrl: '',
};
config.signatureAPI = {
host: 'http://tj3.51gjj.com:5118',
fetchTokenUrl: '/Access/GetToken',
fetchOrderIdUrl: '/Order/GetOrderSn',
signatureUrl: '/Access/SignValidityCheck',
fetchParnterUrl: '',
signatureType: 'incomeTax',
customerUrl: '/customer/query'
};
config.signatureAPI = {
host: 'http://tj3.51gjj.com:5118',
fetchTokenUrl: '/Access/GetToken',
fetchOrderIdUrl: '/Order/GetOrderSn',
signatureUrl: '/Access/SignValidityCheck',
fetchParnterUrl: '',
signatureType: 'incomeTax',
customerUrl: '/customer/query'
};
config.lockKeys = {
fecthHub: 'URANUS.IT.HUBS.LOCK',
fecteToken: 'URANUS.IT.TOKEN.LOCK',
token: 'URANUS.IT.TOKEN',
fecthParnters: 'URANUS.PARNTERS.LOCK',
taskPrefix: 'URANUS.TASK',
};
config.lockKeys = {
fecthHub: 'URANUS.IT.HUBS.LOCK',
fecteToken: 'URANUS.IT.TOKEN.LOCK',
token: 'URANUS.IT.TOKEN',
fecthParnters: 'URANUS.PARNTERS.LOCK',
taskPrefix: 'URANUS.TASK',
};
config.sequelize = {
datasources: [{
// 东八时区
timezone: '+08:00',
delegate: 'model',
baseDir: 'model',
dialect: 'mysql',
host: 'rm-bp1272001633qc0x9o.mysql.rds.aliyuncs.com',
database: 'data_service_dev',
username: 'hexin',
password: 'gYUHszn9#q',
port: 3306,
}],
};
config.sequelize = {
datasources: [{
// 东八时区
timezone: '+08:00',
delegate: 'model',
baseDir: 'model',
dialect: 'mysql',
host: 'rm-bp1272001633qc0x9o.mysql.rds.aliyuncs.com',
database: 'data_service_dev',
username: 'hexin',
password: 'gYUHszn9#q',
port: 3306,
}],
};
// config.GJJ_OpenAPI = {
// appKey: '60670203E411FD62BA9E953CFB73F881',
// appSecret: '0BDD1ECC147503C477563E5C1438C366D70E4F80',
// };
// config.GJJ_OpenAPI = {
// appKey: '60670203E411FD62BA9E953CFB73F881',
// appSecret: '0BDD1ECC147503C477563E5C1438C366D70E4F80',
// };
config.callbackUrl = 'https://dev-nginx.jianbing.com/taxh5/callback';
config.callbackUrl = 'https://dev-nginx.jianbing.com/taxh5/callback';
return config;
return config;
};
......@@ -32,11 +32,11 @@ module.exports = () => {
fetchTheme: '/chaos/theme',
fetchScripts: '/chaos/partners/scripts',
fetchAgreements: '/chaos/agreements',
fetchInfo: '/chaos/partner',
redisThemePrefix: 'URANUS.IT.PARNTERS.THEME',
redisScriptsPrefix: 'URANUS.IT.PARNTERS.SCRIPTS',
redisAgreementsPrefix: 'URANUS.IT.PARNTERS.Agreements',
fetchInfo: '/chaos/partner',
redisInfoPrefix:'URANUS.IT.PARNTERS.Info',
redisInfoPrefix: 'URANUS.IT.PARNTERS.Info',
};
config.scriptsAPI = {
......
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