|
@@ -198,7 +198,13 @@ func (this *BusinessTrip) ApplyAdd() {
|
|
|
|
|
|
//模板消息
|
|
|
{
|
|
|
- wxAppPath := "pages-approve/businessTrip/detail?id=" + strconv.Itoa(int(applyId))
|
|
|
+ var wxAppPath string
|
|
|
+ if utils.RunMode == "debug" {
|
|
|
+ wxAppPath = "pages/index/index"
|
|
|
+ } else {
|
|
|
+ wxAppPath = "pages-approve/businessTrip/detail?id=" + strconv.Itoa(int(applyId))
|
|
|
+ }
|
|
|
+
|
|
|
first := "您好,有新的申请待处理"
|
|
|
keyword1 := sysUser.RealName
|
|
|
keyword2 := sysUser.Mobile
|
|
@@ -424,7 +430,12 @@ func (this *BusinessTrip) ApplyEdit() {
|
|
|
|
|
|
//模板消息
|
|
|
{
|
|
|
- wxAppPath := ""
|
|
|
+ var wxAppPath string
|
|
|
+ if utils.RunMode == "debug" {
|
|
|
+ wxAppPath = "pages/index/index"
|
|
|
+ } else {
|
|
|
+ wxAppPath = "pages-approve/businessTrip/detail?id=" + strconv.Itoa(req.BusinessApplyId)
|
|
|
+ }
|
|
|
first := "您好,有新的申请待处理"
|
|
|
keyword1 := sysUser.RealName
|
|
|
keyword2 := sysUser.Mobile
|