增加普通时间类型,以及增加富文本类型

This commit is contained in:
hoteas 2022-04-28 14:44:56 +08:00
parent 2a21dad90a
commit 2aa86361e1
4 changed files with 14 additions and 13 deletions

View File

@ -567,7 +567,15 @@ func Init(config string) *Application {
appIns.Router = Router{} appIns.Router = Router{}
} }
appIns.Router[codeMake.GetString("name")] = TptProject //appIns.Router[codeMake.GetString("name")] = TptProject
appIns.Router[codeMake.GetString("name")] = Proj{}
for k2, _ := range TptProject {
appIns.Router[codeMake.GetString("name")][k2] = Ctr{}
for k3, v3 := range TptProject[k2] {
appIns.Router[codeMake.GetString("name")][k2][k3] = v3
}
}
for k1, _ := range appIns.MakeCodeRouter[codeMake.GetString("name")].TableColumns { for k1, _ := range appIns.MakeCodeRouter[codeMake.GetString("name")].TableColumns {
appIns.Router[codeMake.GetString("name")][k1] = appIns.Router[codeMake.GetString("name")]["hotimeCommon"] appIns.Router[codeMake.GetString("name")][k1] = appIns.Router[codeMake.GetString("name")]["hotimeCommon"]
} }

View File

@ -22,7 +22,7 @@ var weixin *wechat.Wechat //微信登录实例
var miniProgram *miniprogram.MiniProgram var miniProgram *miniprogram.MiniProgram
var h5Program *officialaccount.OfficialAccount var h5Program *officialaccount.OfficialAccount
func InitApp(app Application) { func InitApp(app *Application) {
weixin = wechat.NewWechat() weixin = wechat.NewWechat()
memory := cache.NewMemory() memory := cache.NewMemory()
memoryMini := cache.NewMemory() memoryMini := cache.NewMemory()

View File

@ -18,21 +18,14 @@
"name": "", "name": "",
"rule": "config/adminRule.json", "rule": "config/adminRule.json",
"table": "admin" "table": "admin"
},
{
"config": "config/app.json",
"mode": 0,
"name": "app",
"rule": "config/appRule.json",
"table": "admin"
} }
], ],
"crossDomain": "", "crossDomain": "",
"db": { "db": {
"mysql": { "mysql": {
"host": "192.168.6.253", "host": "192.168.2.50",
"name": "rfcb", "name": "zct_v2",
"password": "dasda8454456", "password": "kct@2021",
"port": "3306", "port": "3306",
"prefix": "", "prefix": "",
"user": "root" "user": "root"
@ -51,7 +44,7 @@
}, },
"imgPath": "img/2006/01/02/", "imgPath": "img/2006/01/02/",
"mode": 2, "mode": 2,
"port": "8082", "port": "8081",
"sessionName": "HOTIME", "sessionName": "HOTIME",
"smsKey": "b0eb4bf0198b9983cffcb85b69fdf4fa", "smsKey": "b0eb4bf0198b9983cffcb85b69fdf4fa",
"smsLogin": "【政策通】您的验证码为:{code}请在5分钟内使用切勿将验证码泄露于他人如非本人操作请忽略。", "smsLogin": "【政策通】您的验证码为:{code}请在5分钟内使用切勿将验证码泄露于他人如非本人操作请忽略。",

Binary file not shown.