Explorar el Código

增加刷新session标识

wangchuanjin hace 2 años
padre
commit
76f13d6294
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 2 0
      entity/merge.go
  2. 0 1
      main.go

+ 2 - 0
entity/merge.go

@@ -514,6 +514,8 @@ func Merge(wId, pId string, choose map[string]int, noteFunc ...func(string)) err
 	{
 		savePositions := public.BaseService.SelectBySql(`select * from base_position where user_id=? and type=1`, saveBsId)
 		delPositions := public.BaseService.SelectBySql(`select * from base_position where user_id=? and type=1`, delBsId)
+		log.Println("savePositions======", savePositions)
+		log.Println("delPositions======", delPositions)
 		//保留的没有企业身份,舍弃的有企业身份
 		if (savePositions == nil || len(*savePositions) == 0) && (delPositions != nil && len(*delPositions) > 0) {
 			ok := public.BaseService.ExecTx("合并舍弃用户的企业身份", func(tx *sql.Tx) bool {

+ 0 - 1
main.go

@@ -11,7 +11,6 @@ import (
 )
 
 func main() {
-	log.Println("============wcj")
 	mux1 := http.NewServeMux()
 	xweb.RunBase(":"+config.Config.Webport, mux1)
 }