Commit 1f73bc73 by Joneq

增加日志

parent 6c162092
Showing with 2 additions and 2 deletions
package service package service
import ( import (
"github.com/go-kratos/kratos/pkg/log" "fmt"
"strconv" "strconv"
"strings" "strings"
bm "github.com/go-kratos/kratos/pkg/net/http/blademaster" bm "github.com/go-kratos/kratos/pkg/net/http/blademaster"
...@@ -13,7 +13,7 @@ func StoreErWeiMaGetData(c *bm.Context,erweima string) (num int64,materialno str ...@@ -13,7 +13,7 @@ func StoreErWeiMaGetData(c *bm.Context,erweima string) (num int64,materialno str
if len(paramArr) < 5 { if len(paramArr) < 5 {
ErrorReturn(c,"二维码参数不正常") ErrorReturn(c,"二维码参数不正常")
} }
log.Info(paramArr) fmt.Println(paramArr[3],paramArr[4])
returnNum,_ :=strconv.ParseInt(paramArr[3], 10, 64) returnNum,_ :=strconv.ParseInt(paramArr[3], 10, 64)
return returnNum,paramArr[4] return returnNum,paramArr[4]
} }
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 sign in to comment