Commit 31586e0f by usual2970

添加日志

parent fd7d6424
...@@ -3,6 +3,7 @@ package controllers ...@@ -3,6 +3,7 @@ package controllers
import ( import (
"github.com/astaxie/beego" "github.com/astaxie/beego"
"github.com/usual2970/util/tel" "github.com/usual2970/util/tel"
"github.com/astaxie/beego/logs"
"github.com/usual2970/util/service/models" "github.com/usual2970/util/service/models"
) )
...@@ -30,7 +31,7 @@ func (c *TelController) Dial() { ...@@ -30,7 +31,7 @@ func (c *TelController) Dial() {
resp,err:=telObj.Dial() resp,err:=telObj.Dial()
if err!=nil{ if err!=nil{
log.Info(string(err)) log.Info("err:%s",err)
rs.ErrNo="2" rs.ErrNo="2"
rs.Msg="拨打失败" rs.Msg="拨打失败"
break break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment