Explorar el Código

消息信息增加时间

zhangnaiwen hace 2 años
padre
commit
b0b2893ac0
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/app/api/message.py

+ 2 - 1
src/app/api/message.py

@@ -279,7 +279,8 @@ class MessageApi(Resource):
                     "name": name,
                     "title": title,
                     "content": content,
-                    "style": style
+                    "style": style,
+                    "time": cn_now() if send_time == 'immediately' else send_time
                 }
             )