diff --git a/example/app/mail.go b/example/app/mail.go index 3066e9e..91d1d10 100644 --- a/example/app/mail.go +++ b/example/app/mail.go @@ -3,6 +3,7 @@ package app import ( . "code.hoteas.com/golang/hotime" . "code.hoteas.com/golang/hotime/common" + "time" ) var MailCtr = Ctr{ @@ -33,6 +34,7 @@ var MailCtr = Ctr{ } data := Map{ + "sn": Md5(ObjToStr(time.Now().UnixNano()) + ObjToStr(RandX(10000, 100000))), "name": name, "title": title, "phone": phone, "content": content, "type": tp, "show": show, "modify_time[#]": "NOW()", "create_time[#]": "NOW()", }