chore: set cmpp port to 17890
This commit is contained in:
@@ -9,7 +9,7 @@ function createPrismaMock() {
|
|||||||
carrier: 'mobile',
|
carrier: 'mobile',
|
||||||
protocol: 'CMPP',
|
protocol: 'CMPP',
|
||||||
gatewayHost: '127.0.0.1',
|
gatewayHost: '127.0.0.1',
|
||||||
gatewayPort: 7890,
|
gatewayPort: 17890,
|
||||||
enterpriseCode: 'EC',
|
enterpriseCode: 'EC',
|
||||||
account: 'sp',
|
account: 'sp',
|
||||||
passwordCipher: 'secret',
|
passwordCipher: 'secret',
|
||||||
@@ -108,7 +108,7 @@ describe('ChannelsService', () => {
|
|||||||
code: 'CMPP-A',
|
code: 'CMPP-A',
|
||||||
name: '主通道',
|
name: '主通道',
|
||||||
gatewayHost: '127.0.0.1',
|
gatewayHost: '127.0.0.1',
|
||||||
gatewayPort: 7890,
|
gatewayPort: 17890,
|
||||||
account: 'sp',
|
account: 'sp',
|
||||||
passwordCipher: 'secret',
|
passwordCipher: 'secret',
|
||||||
srcId: '10690000',
|
srcId: '10690000',
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ function createPrismaMock() {
|
|||||||
findFirst: jest.fn().mockResolvedValue({
|
findFirst: jest.fn().mockResolvedValue({
|
||||||
id: 'channel-1',
|
id: 'channel-1',
|
||||||
gatewayHost: '127.0.0.1',
|
gatewayHost: '127.0.0.1',
|
||||||
gatewayPort: 7890,
|
gatewayPort: 17890,
|
||||||
enterpriseCode: 'EC',
|
enterpriseCode: 'EC',
|
||||||
account: 'sp',
|
account: 'sp',
|
||||||
passwordCipher: 'cipher',
|
passwordCipher: 'cipher',
|
||||||
@@ -95,7 +95,7 @@ describe('SmsConfigService', () => {
|
|||||||
applicationId: 'app-1',
|
applicationId: 'app-1',
|
||||||
tenantName: '租户A',
|
tenantName: '租户A',
|
||||||
gatewayHost: '127.0.0.1',
|
gatewayHost: '127.0.0.1',
|
||||||
gatewayPort: 7890,
|
gatewayPort: 17890,
|
||||||
maxConnections: 2,
|
maxConnections: 2,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ const initialChannels: SmsChannel[] = [
|
|||||||
failureRate: 8,
|
failureRate: 8,
|
||||||
failureCount: 189,
|
failureCount: 189,
|
||||||
gatewayHost: '10.10.39.8',
|
gatewayHost: '10.10.39.8',
|
||||||
gatewayPort: '7890',
|
gatewayPort: '17890',
|
||||||
corpCode: 'CM88827',
|
corpCode: 'CM88827',
|
||||||
account: 'acct88827',
|
account: 'acct88827',
|
||||||
accessNo: '10690088',
|
accessNo: '10690088',
|
||||||
@@ -137,7 +137,7 @@ const initialChannels: SmsChannel[] = [
|
|||||||
failureRate: 16.2,
|
failureRate: 16.2,
|
||||||
failureCount: 189,
|
failureCount: 189,
|
||||||
gatewayHost: '10.10.38.8',
|
gatewayHost: '10.10.38.8',
|
||||||
gatewayPort: '7890',
|
gatewayPort: '17890',
|
||||||
corpCode: 'CM00077',
|
corpCode: 'CM00077',
|
||||||
account: 'acct00077',
|
account: 'acct00077',
|
||||||
accessNo: '10690077',
|
accessNo: '10690077',
|
||||||
@@ -156,7 +156,7 @@ const initialChannels: SmsChannel[] = [
|
|||||||
failureRate: 5.8,
|
failureRate: 5.8,
|
||||||
failureCount: 0,
|
failureCount: 0,
|
||||||
gatewayHost: '10.10.37.8',
|
gatewayHost: '10.10.37.8',
|
||||||
gatewayPort: '7890',
|
gatewayPort: '17890',
|
||||||
corpCode: 'CU00078',
|
corpCode: 'CU00078',
|
||||||
account: 'acct00078',
|
account: 'acct00078',
|
||||||
accessNo: '10690078',
|
accessNo: '10690078',
|
||||||
@@ -175,7 +175,7 @@ const initialChannels: SmsChannel[] = [
|
|||||||
failureRate: 100,
|
failureRate: 100,
|
||||||
failureCount: 154,
|
failureCount: 154,
|
||||||
gatewayHost: '10.10.34.8',
|
gatewayHost: '10.10.34.8',
|
||||||
gatewayPort: '7890',
|
gatewayPort: '17890',
|
||||||
corpCode: 'CT00067',
|
corpCode: 'CT00067',
|
||||||
account: 'acct00067',
|
account: 'acct00067',
|
||||||
accessNo: '10690067',
|
accessNo: '10690067',
|
||||||
@@ -241,7 +241,7 @@ function ChannelFormModal({
|
|||||||
const [region, setRegion] = useState('全国');
|
const [region, setRegion] = useState('全国');
|
||||||
const [protocol, setProtocol] = useState('CMPP');
|
const [protocol, setProtocol] = useState('CMPP');
|
||||||
const [gatewayHost, setGatewayHost] = useState(channel?.gatewayHost ?? '');
|
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 [corpCode, setCorpCode] = useState(channel?.corpCode ?? '');
|
||||||
const [account, setAccount] = useState(channel?.account ?? '');
|
const [account, setAccount] = useState(channel?.account ?? '');
|
||||||
const [password, setPassword] = useState('');
|
const [password, setPassword] = useState('');
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const applications: SmsApplication[] = [
|
|||||||
{ label: '账号', value: 'qrhyyd' },
|
{ label: '账号', value: 'qrhyyd' },
|
||||||
{ label: '密码', value: 'm6yZvZKn', highlight: true },
|
{ label: '密码', value: 'm6yZvZKn', highlight: true },
|
||||||
{ label: '网关IP', value: '121.40.172.212' },
|
{ label: '网关IP', value: '121.40.172.212' },
|
||||||
{ label: '网关端口', value: '7890' },
|
{ label: '网关端口', value: '17890' },
|
||||||
{ label: '接入号', value: '106999999' },
|
{ label: '接入号', value: '106999999' },
|
||||||
{ label: '绑定IP', value: '61.129.57.48' },
|
{ label: '绑定IP', value: '61.129.57.48' },
|
||||||
{ label: '连接数', value: '1' },
|
{ label: '连接数', value: '1' },
|
||||||
@@ -69,7 +69,7 @@ const applications: SmsApplication[] = [
|
|||||||
{ label: '账号', value: 'kfxt' },
|
{ label: '账号', value: 'kfxt' },
|
||||||
{ label: '密码', value: 'r8xKvP2m', highlight: true },
|
{ label: '密码', value: 'r8xKvP2m', highlight: true },
|
||||||
{ label: '网关IP', value: '121.40.172.213' },
|
{ label: '网关IP', value: '121.40.172.213' },
|
||||||
{ label: '网关端口', value: '7890' },
|
{ label: '网关端口', value: '17890' },
|
||||||
{ label: '接入号', value: '106988888' },
|
{ label: '接入号', value: '106988888' },
|
||||||
{ label: '绑定IP', value: '61.129.57.49' },
|
{ label: '绑定IP', value: '61.129.57.49' },
|
||||||
{ label: '连接数', value: '1' },
|
{ label: '连接数', value: '1' },
|
||||||
|
|||||||
Reference in New Issue
Block a user