渠道账号走数据库,不再写死在代码中。

master
3y 3 years ago
parent f4d2d68064
commit 8e375d9f4e

@ -106,7 +106,7 @@
"visibleOn": "this.sendChannel ==30",
"mode": "normal",
"inline": true,
"label": "腾讯云账号样例:{\n \"url\": \"sms.tencentcloudapi.com\",\n \"region\": \"ap-guangzhou\",\n \"secretId\": \"234234\",\n \"secretKey\": \"234324324\",\n \"smsSdkAppId\": \"2343242\",\n \"templateId\": \"234234\",\n \"signName\": \"Java3y公众号\",\n \"supplierId\": 10,\n \"supplierName\": \"腾讯云\"\n}</br></br> 云片账号配置样例:{\n \"url\": \"https://sms.yunpian.com/v2/sms/tpl_batch_send.json\",\n \"apikey\": \"23423432\",\n \"tpl_id\": \"23423432\",\n \"supplierId\": 20,\n \"supplierName\": \"云片\"\n}"
"label": "腾讯云账号样例:{\"url\":\"sms.tencentcloudapi.com\",\"region\":\"ap-guangzhou\",\"secretId\":\"AKIDhDxxxxxxxx1WljQq\",\"secretKey\":\"B4hwww39yxxxrrrrgxyi\",\"smsSdkAppId\":\"1423123125\",\"templateId\":\"1182097\",\"signName\":\"Java3y公众号\",\"supplierId\":10,\"supplierName\":\"腾讯云\",\"scriptName\":\"TencentSmsScript\"}</br></br> 云片账号配置样例:{\"url\":\"https://sms.yunpian.com/v2/sms/tpl_batch_send.json\",\"apikey\":\"caffff8234234231b5cd7\",\"tpl_id\":\"523333332\",\"supplierId\":20,\"supplierName\":\"云片\",\"scriptName\":\"YunPianSmsScript\"}"
},
{
"type": "static",
@ -189,7 +189,7 @@
"affixFooter": true,
"panelClassName": "Panel--default",
"bodyClassName": "text-lg",
"redirect": "/crud/list",
"redirect": "/crud/account/list?page=1",
"api": {
"url": "http://localhost:8080/account/save",
"method": "post",

@ -215,17 +215,20 @@
],
"required": true
},
{
"type": "hidden",
"name": "sendAccount",
"value": "0",
"visibleOn": "this.sendChannel == 30"
},
{
"type": "input-text",
"label": "短信账号",
"name": "sendAccount",
"disabled": true,
"value": "0",
"placeholder": "自动会根据消息类型选择发送账号",
"description": "自动会根据消息类型选择发送账号",
"value": "根据【消息类型】按流量分配到对应短信渠道",
"visibleOn": "this.sendChannel == 30",
"clearValueOnHidden": false,
"required": true,
"required": false,
"size": "lg"
},
{
@ -252,16 +255,7 @@
"type": "select",
"label": "飞书机器人",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=110",
"visibleOn": "this.sendChannel == 110",
"clearValueOnHidden": false,
"required": true,
@ -323,16 +317,7 @@
"type": "select",
"label": "推送账号",
"name": "sendAccount",
"options": [
{
"label": "个推",
"value": "10"
},
{
"label": "信鸽",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=20",
"visibleOn": "this.sendChannel == 20",
"clearValueOnHidden": false,
"required": true,
@ -373,16 +358,7 @@
"type": "select",
"label": "邮件账号",
"name": "sendAccount",
"options": [
{
"label": "QQ邮箱",
"value": "10"
},
{
"label": "163邮箱",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=40",
"visibleOn": "this.sendChannel == 40",
"clearValueOnHidden": false,
"required": true,
@ -412,16 +388,7 @@
"type": "select",
"label": "企业微信应用",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=70",
"visibleOn": "this.sendChannel == 70",
"clearValueOnHidden": false,
"required": true,
@ -431,16 +398,7 @@
"type": "select",
"label": "钉钉群机器人",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=80",
"visibleOn": "this.sendChannel == 80",
"clearValueOnHidden": false,
"required": true,
@ -450,16 +408,7 @@
"type": "select",
"label": "钉钉应用",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=90",
"visibleOn": "this.sendChannel == 90",
"clearValueOnHidden": false,
"required": true,

@ -231,17 +231,20 @@
],
"required": true
},
{
"type": "hidden",
"name": "sendAccount",
"value": "0",
"visibleOn": "this.sendChannel == 30"
},
{
"type": "input-text",
"label": "短信账号",
"name": "sendAccount",
"disabled": true,
"value": "0",
"placeholder": "自动会根据消息类型选择发送账号",
"description": "自动会根据消息类型选择发送账号",
"value": "根据【消息类型】按流量分配到对应短信渠道",
"visibleOn": "this.sendChannel == 30",
"clearValueOnHidden": false,
"required": true,
"required": false,
"size": "lg"
},
{
@ -268,12 +271,7 @@
"type": "select",
"label": "发送账号",
"name": "sendAccount",
"options": [
{
"label": "个推",
"value": "10"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=20",
"visibleOn": "this.sendChannel == 20",
"clearValueOnHidden": false,
"required": true,
@ -315,16 +313,7 @@
"type": "select",
"label": "邮件账号",
"name": "sendAccount",
"options": [
{
"label": "QQ邮箱",
"value": "10"
},
{
"label": "163邮箱",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=40",
"visibleOn": "this.sendChannel == 40",
"clearValueOnHidden": false,
"required": true,
@ -354,16 +343,7 @@
"type": "select",
"label": "飞书机器人",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=110",
"visibleOn": "this.sendChannel == 110",
"clearValueOnHidden": false,
"required": true,
@ -425,16 +405,7 @@
"type": "select",
"label": "企业微信应用",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=70",
"visibleOn": "this.sendChannel == 70",
"clearValueOnHidden": false,
"required": true,
@ -444,16 +415,7 @@
"type": "select",
"label": "钉钉群机器人",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=80",
"visibleOn": "this.sendChannel == 80",
"clearValueOnHidden": false,
"required": true,
@ -463,16 +425,7 @@
"type": "select",
"label": "钉钉应用",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=90",
"visibleOn": "this.sendChannel == 90",
"clearValueOnHidden": false,
"required": true,

@ -212,14 +212,11 @@
{
"type": "input-text",
"label": "短信账号",
"name": "sendAccount",
"disabled": true,
"value": "0",
"placeholder": "自动会根据消息类型选择发送账号",
"description": "自动会根据消息类型选择发送账号",
"value": "根据【消息类型】按流量分配到对应短信渠道",
"visibleOn": "this.sendChannel == 30",
"clearValueOnHidden": false,
"required": true,
"required": false,
"size": "lg"
},
{
@ -246,16 +243,7 @@
"type": "select",
"label": "飞书机器人",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=110",
"visibleOn": "this.sendChannel == 110",
"clearValueOnHidden": false,
"required": true,
@ -317,16 +305,7 @@
"type": "select",
"label": "推送账号",
"name": "sendAccount",
"options": [
{
"label": "个推",
"value": "10"
},
{
"label": "信鸽",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=20",
"visibleOn": "this.sendChannel == 20",
"clearValueOnHidden": false,
"required": true,
@ -368,16 +347,7 @@
"type": "select",
"label": "邮件账号",
"name": "sendAccount",
"options": [
{
"label": "QQ邮箱",
"value": "10"
},
{
"label": "163邮箱",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=40",
"visibleOn": "this.sendChannel == 40",
"clearValueOnHidden": false,
"required": true,
@ -406,16 +376,8 @@
"type": "select",
"label": "企业微信应用",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=70",
"visibleOn": "this.sendChannel == 70",
"clearValueOnHidden": false,
"required": true,
@ -425,16 +387,7 @@
"type": "select",
"label": "钉钉群机器人",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=80",
"visibleOn": "this.sendChannel == 80",
"clearValueOnHidden": false,
"required": true,
@ -444,16 +397,7 @@
"type": "select",
"label": "钉钉应用账号",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
],
"source": "http://localhost:8080/account/queryByChannelType?channelType=90",
"visibleOn": "this.sendChannel == 90",
"clearValueOnHidden": false,
"required": true,

@ -6,6 +6,7 @@
"label": "渠道类型",
"type": "radios",
"name": "sendChannel",
"required": true,
"options": [
{
"label": "服务号",
@ -27,23 +28,49 @@
},
{
"type": "select",
"label": "渠道账号",
"label": "服务号账号",
"name": "sendAccount",
"options": [
{
"label": "austin",
"value": "10"
},
{
"label": "athena",
"value": "20"
}
]
"source": "http://localhost:8080/account/queryByChannelType?channelType=50",
"visibleOn": "this.sendChannel == 50",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{
"type": "select",
"label": "小程序账号",
"name": "sendAccount",
"source": "http://localhost:8080/account/queryByChannelType?channelType=60",
"visibleOn": "this.sendChannel == 60",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{
"type": "select",
"label": "企业微信账号",
"name": "sendAccount",
"source": "http://localhost:8080/account/queryByChannelType?channelType=70",
"visibleOn": "this.sendChannel == 70",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{
"type": "select",
"label": "钉钉工作消息账号",
"name": "sendAccount",
"source": "http://localhost:8080/account/queryByChannelType?channelType=90",
"visibleOn": "this.sendChannel == 90",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{
"type": "radios",
"label": "文件类型",
"name": "fileType",
"required": true,
"options": [
{
"label": "图片",
@ -67,6 +94,7 @@
"type": "input-file",
"label": "上传素材",
"name": "file",
"required": true,
"asBlob": true
},
{

Loading…
Cancel
Save