feat: improve channel resilience and operations
This commit is contained in:
@@ -48,7 +48,7 @@ export function AdminSmsApplicationFormPage() {
|
||||
const [interfaceEnabled, setInterfaceEnabled] = useState(true);
|
||||
const [interfaceType, setInterfaceType] = useState<InterfaceType>('cmpp20');
|
||||
const [cmppMaxConnections, setCmppMaxConnections] = useState('1');
|
||||
const [phoneDailyLimit, setPhoneDailyLimit] = useState('10');
|
||||
const [phoneDailyLimit, setPhoneDailyLimit] = useState('10000');
|
||||
const [mismatchPolicy, setMismatchPolicy] = useState('manual_review');
|
||||
const [downstreamReceiptRetryEnabled, setDownstreamReceiptRetryEnabled] = useState(true);
|
||||
const [downstreamUplinkRetryEnabled, setDownstreamUplinkRetryEnabled] = useState(true);
|
||||
@@ -73,6 +73,29 @@ export function AdminSmsApplicationFormPage() {
|
||||
let cancelled = false;
|
||||
async function loadForm() {
|
||||
try {
|
||||
if (!isEdit) {
|
||||
setAppName('');
|
||||
setScene('行业通知');
|
||||
setDailyLimit('100000');
|
||||
setCustomerUnitPrice('0.0300');
|
||||
setQueuePriority('normal');
|
||||
setCmppAccount('');
|
||||
setApplicationExtension('');
|
||||
setAccessNumberFillEnabled(false);
|
||||
setAccessNumberFillPrefix('');
|
||||
setPasswordCipher(generateApplicationPassword());
|
||||
setInterfaceEnabled(true);
|
||||
setInterfaceType('cmpp20');
|
||||
setCmppMaxConnections('1');
|
||||
setPhoneDailyLimit('10000');
|
||||
setMismatchPolicy('manual_review');
|
||||
setDownstreamReceiptRetryEnabled(true);
|
||||
setDownstreamUplinkRetryEnabled(true);
|
||||
setIpAddress('');
|
||||
setMobileGroupId('');
|
||||
setUnicomGroupId('');
|
||||
setTelecomGroupId('');
|
||||
}
|
||||
const [groupItems, application, routeRules] = await Promise.all([
|
||||
adminApi.listChannelGroups(),
|
||||
isEdit && appId ? adminApi.getEnterpriseApplication(appId) : Promise.resolve<EnterpriseApplication | null>(null),
|
||||
@@ -278,7 +301,7 @@ export function AdminSmsApplicationFormPage() {
|
||||
<span>优先队列会在发送调度中插队处理,但仍必须经过模板、签名、余额、通道组和通道限速校验。</span>
|
||||
</div>
|
||||
</div>
|
||||
<Input hint="单个发送任务超过该数量时,后端会拒绝整个任务,不会只发送前面的号码;请拆分后重新提交。" label="每任务最大号码数" onChange={(event) => setPhoneDailyLimit(event.target.value)} placeholder="10" required value={phoneDailyLimit} />
|
||||
<Input hint="单个发送任务超过该数量时,后端会拒绝整个任务,不会只发送前面的号码;请拆分后重新提交。" label="每任务最大号码数" onChange={(event) => setPhoneDailyLimit(event.target.value)} placeholder="10000" required value={phoneDailyLimit} />
|
||||
<Select
|
||||
label="不符合模板的短信"
|
||||
onChange={(event) => setMismatchPolicy(event.target.value)}
|
||||
|
||||
Reference in New Issue
Block a user