mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 03:16:53 +00:00
加密传输,代码优化
This commit is contained in:
@@ -64,6 +64,7 @@ func (s *IndexController) Add() {
|
||||
U: s.GetString("u"),
|
||||
P: s.GetString("p"),
|
||||
Compress: s.GetString("compress"),
|
||||
Crypt: s.GetString("crypt"),
|
||||
IsRun: 0,
|
||||
}
|
||||
lib.CsvDb.NewTask(t)
|
||||
@@ -96,6 +97,7 @@ func (s *IndexController) Edit() {
|
||||
t.U = s.GetString("u")
|
||||
t.P = s.GetString("p")
|
||||
t.Compress = s.GetString("compress")
|
||||
t.Crypt = s.GetString("crypt")
|
||||
lib.CsvDb.UpdateTask(t)
|
||||
lib.StopServer(t.VerifyKey)
|
||||
lib.StartTask(t.VerifyKey)
|
||||
|
Reference in New Issue
Block a user