diff --git a/api/src/channels/channels.service.spec.ts b/api/src/channels/channels.service.spec.ts index 2f57367..a07a8b3 100644 --- a/api/src/channels/channels.service.spec.ts +++ b/api/src/channels/channels.service.spec.ts @@ -9,7 +9,7 @@ function createPrismaMock() { carrier: 'mobile', protocol: 'CMPP', gatewayHost: '127.0.0.1', - gatewayPort: 7890, + gatewayPort: 17890, enterpriseCode: 'EC', account: 'sp', passwordCipher: 'secret', @@ -108,7 +108,7 @@ describe('ChannelsService', () => { code: 'CMPP-A', name: '主通道', gatewayHost: '127.0.0.1', - gatewayPort: 7890, + gatewayPort: 17890, account: 'sp', passwordCipher: 'secret', srcId: '10690000', diff --git a/api/src/sms-config/sms-config.service.spec.ts b/api/src/sms-config/sms-config.service.spec.ts index dd503c2..7435024 100644 --- a/api/src/sms-config/sms-config.service.spec.ts +++ b/api/src/sms-config/sms-config.service.spec.ts @@ -44,7 +44,7 @@ function createPrismaMock() { findFirst: jest.fn().mockResolvedValue({ id: 'channel-1', gatewayHost: '127.0.0.1', - gatewayPort: 7890, + gatewayPort: 17890, enterpriseCode: 'EC', account: 'sp', passwordCipher: 'cipher', @@ -95,7 +95,7 @@ describe('SmsConfigService', () => { applicationId: 'app-1', tenantName: '租户A', gatewayHost: '127.0.0.1', - gatewayPort: 7890, + gatewayPort: 17890, maxConnections: 2, })); }); diff --git a/src/apps/admin/AdminChannelsPage.tsx b/src/apps/admin/AdminChannelsPage.tsx index 23e0e7d..3aad0e5 100644 --- a/src/apps/admin/AdminChannelsPage.tsx +++ b/src/apps/admin/AdminChannelsPage.tsx @@ -118,7 +118,7 @@ const initialChannels: SmsChannel[] = [ failureRate: 8, failureCount: 189, gatewayHost: '10.10.39.8', - gatewayPort: '7890', + gatewayPort: '17890', corpCode: 'CM88827', account: 'acct88827', accessNo: '10690088', @@ -137,7 +137,7 @@ const initialChannels: SmsChannel[] = [ failureRate: 16.2, failureCount: 189, gatewayHost: '10.10.38.8', - gatewayPort: '7890', + gatewayPort: '17890', corpCode: 'CM00077', account: 'acct00077', accessNo: '10690077', @@ -156,7 +156,7 @@ const initialChannels: SmsChannel[] = [ failureRate: 5.8, failureCount: 0, gatewayHost: '10.10.37.8', - gatewayPort: '7890', + gatewayPort: '17890', corpCode: 'CU00078', account: 'acct00078', accessNo: '10690078', @@ -175,7 +175,7 @@ const initialChannels: SmsChannel[] = [ failureRate: 100, failureCount: 154, gatewayHost: '10.10.34.8', - gatewayPort: '7890', + gatewayPort: '17890', corpCode: 'CT00067', account: 'acct00067', accessNo: '10690067', @@ -241,7 +241,7 @@ function ChannelFormModal({ const [region, setRegion] = useState('全国'); const [protocol, setProtocol] = useState('CMPP'); const [gatewayHost, setGatewayHost] = useState(channel?.gatewayHost ?? ''); - const [gatewayPort, setGatewayPort] = useState(channel?.gatewayPort ?? '7890'); + const [gatewayPort, setGatewayPort] = useState(channel?.gatewayPort ?? '17890'); const [corpCode, setCorpCode] = useState(channel?.corpCode ?? ''); const [account, setAccount] = useState(channel?.account ?? ''); const [password, setPassword] = useState(''); diff --git a/src/apps/client/ClientApplicationsPage.tsx b/src/apps/client/ClientApplicationsPage.tsx index ed5faf5..c60218c 100644 --- a/src/apps/client/ClientApplicationsPage.tsx +++ b/src/apps/client/ClientApplicationsPage.tsx @@ -46,7 +46,7 @@ const applications: SmsApplication[] = [ { label: '账号', value: 'qrhyyd' }, { label: '密码', value: 'm6yZvZKn', highlight: true }, { label: '网关IP', value: '121.40.172.212' }, - { label: '网关端口', value: '7890' }, + { label: '网关端口', value: '17890' }, { label: '接入号', value: '106999999' }, { label: '绑定IP', value: '61.129.57.48' }, { label: '连接数', value: '1' }, @@ -69,7 +69,7 @@ const applications: SmsApplication[] = [ { label: '账号', value: 'kfxt' }, { label: '密码', value: 'r8xKvP2m', highlight: true }, { label: '网关IP', value: '121.40.172.213' }, - { label: '网关端口', value: '7890' }, + { label: '网关端口', value: '17890' }, { label: '接入号', value: '106988888' }, { label: '绑定IP', value: '61.129.57.49' }, { label: '连接数', value: '1' },