commit
5ea68433d2
@ -14,13 +14,13 @@ settings:
|
|||||||
dbtype: mysql
|
dbtype: mysql
|
||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
name: ferry
|
name: ferry
|
||||||
password: 123456
|
password: ferry@2020
|
||||||
port: 3306
|
port: 3306
|
||||||
username: ferry
|
username: ferry
|
||||||
email:
|
email:
|
||||||
alias: ferry
|
alias: ferry
|
||||||
host: smtp.163.com
|
host: smtp.163.com
|
||||||
pass: your password
|
pass: REYVECRYOZEZIFKL
|
||||||
port: 465
|
port: 465
|
||||||
user: fdevops@163.com
|
user: fdevops@163.com
|
||||||
gorm:
|
gorm:
|
||||||
@ -36,3 +36,4 @@ settings:
|
|||||||
ssl:
|
ssl:
|
||||||
key: keystring
|
key: keystring
|
||||||
pem: temp/pem.pem
|
pem: temp/pem.pem
|
||||||
|
domain: http://192.168.0.100:9527
|
||||||
|
@ -35,4 +35,5 @@ settings:
|
|||||||
gorm:
|
gorm:
|
||||||
logmode: 0
|
logmode: 0
|
||||||
maxidleconn: 0
|
maxidleconn: 0
|
||||||
maxopenconn: 20000
|
maxopenconn: 20000
|
||||||
|
domain: http://192.168.0.100:9527
|
||||||
|
@ -6,6 +6,8 @@ import (
|
|||||||
"ferry/pkg/notify/email"
|
"ferry/pkg/notify/email"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -27,6 +29,7 @@ type BodyData struct {
|
|||||||
Content string // 通知的内容
|
Content string // 通知的内容
|
||||||
Description string // 表格上面的描述信息
|
Description string // 表格上面的描述信息
|
||||||
ProcessId int // 流程ID
|
ProcessId int // 流程ID
|
||||||
|
Domain string // 域名地址
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *BodyData) ParsingTemplate() (err error) {
|
func (b *BodyData) ParsingTemplate() (err error) {
|
||||||
@ -40,6 +43,7 @@ func (b *BodyData) ParsingTemplate() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
b.Domain = viper.GetString("settings.domain")
|
||||||
err = tmpl.Execute(&buf, b)
|
err = tmpl.Execute(&buf, b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
1
static/scripts/echo_test-4171bc7f4a05-admin.sh
Normal file
1
static/scripts/echo_test-4171bc7f4a05-admin.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
echo "test"
|
1
static/scripts/print_hello_world-d266ee2a8029-admin.py
Normal file
1
static/scripts/print_hello_world-d266ee2a8029-admin.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
print("Hello, World!")
|
@ -29,7 +29,7 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a href="http://localhost:9527/#/process/handle-ticket?workOrderId={{ .Id }}&processId={{ .ProcessId }}" target="_blank">点击此处跳转到工单详情</a>
|
<a href="{{ .Domain }}/#/process/handle-ticket?workOrderId={{ .Id }}&processId={{ .ProcessId }}" target="_blank">点击此处跳转到工单详情</a>
|
||||||
</body>
|
</body>
|
||||||
<style>
|
<style>
|
||||||
table {
|
table {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user