|
@@ -113,7 +113,7 @@ func (c *OvertimeController) Overtime_Add() {
|
|
}
|
|
}
|
|
|
|
|
|
NatsServer.AddUserLogs(c.User.T_uuid, "我的加班", "添加", var_)
|
|
NatsServer.AddUserLogs(c.User.T_uuid, "我的加班", "添加", var_)
|
|
- NatsServer.AddNews(T_approver, fmt.Sprintf("您有一条【%s】的加班审批待处理", c.User.T_name), "/overtime")
|
|
|
|
|
|
+ NatsServer.AddNews(T_approver, fmt.Sprintf("您有一条【%s】的加班审批待处理", c.User.T_name), conf.OvertimeApprovalNewsUrl)
|
|
|
|
|
|
c.Data["json"] = lib.JSONS{Code: 200, Msg: "ok!", Data: var_.Id}
|
|
c.Data["json"] = lib.JSONS{Code: 200, Msg: "ok!", Data: var_.Id}
|
|
c.ServeJSON()
|
|
c.ServeJSON()
|
|
@@ -228,7 +228,7 @@ func (c *OvertimeController) Overtime_Approval() {
|
|
}
|
|
}
|
|
|
|
|
|
NatsServer.AddUserLogs(c.User.T_uuid, "加班审批", "审批", leave)
|
|
NatsServer.AddUserLogs(c.User.T_uuid, "加班审批", "审批", leave)
|
|
- NatsServer.AddNews(leave.T_uid, "您的加班申请已通过", "/myOvertime")
|
|
|
|
|
|
+ NatsServer.AddNews(leave.T_uid, "您的加班申请已通过", conf.MyOvertimeNewsUrl)
|
|
|
|
|
|
c.Data["json"] = lib.JSONS{Code: 200, Msg: "ok!", Data: id}
|
|
c.Data["json"] = lib.JSONS{Code: 200, Msg: "ok!", Data: id}
|
|
c.ServeJSON()
|
|
c.ServeJSON()
|