Ver Fonte

后端: 日志形式

baichengfei há 4 anos atrás
pai
commit
86abf52572
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      src/dashoo.cn/backend/api/controllers/base.go

+ 3 - 2
src/dashoo.cn/backend/api/controllers/base.go

@@ -5,6 +5,7 @@ import (
 	"encoding/base64"
 	"errors"
 	"fmt"
+	"log"
 	"reflect"
 	"strconv"
 	"strings"
@@ -267,7 +268,7 @@ var (
 	DelOilSupplierCertName         string = "Del_OilSupplierCert"
 	DelOilSupplierName             string = "Del_OilSupplier"
 	DelOilCorporateInfoName        string = "Del_OilCorporateInfo"
-	DelBaseNameName        		   string = "Del_Base_User"
+	DelBaseNameName                string = "Del_Base_User"
 	DelOilSupplierFileName         string = "Del_OilSupplierFile"
 	DelOilPaymentInfoName          string = "Del_OilPaymentInfo"
 	DelOilSupplierCertSubName      string = "Del_OilSupplierCertSub"
@@ -353,7 +354,7 @@ func (this *BaseController) Prepare() {
 		"/api/bankapi/get-icbc-gfgl2019-token",
 		"/api/iam/iamlogin",
 	}
-	fmt.Println("请求API-URL", this.Ctx.Input.URL())
+	log.Print("请求API-URL:", this.Ctx.Input.URL())
 	for _, v := range urls {
 		//fmt.Println("**this.Ctx.Input.URL()**", this.Ctx.Input.URL())
 		if this.Ctx.Input.URL() == v {