فهرست منبع

增加刷新session标识

wangchuanjin 2 سال پیش
والد
کامیت
76f13d6294
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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)
 		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)
 		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) {
 		if (savePositions == nil || len(*savePositions) == 0) && (delPositions != nil && len(*delPositions) > 0) {
 			ok := public.BaseService.ExecTx("合并舍弃用户的企业身份", func(tx *sql.Tx) bool {
 			ok := public.BaseService.ExecTx("合并舍弃用户的企业身份", func(tx *sql.Tx) bool {

+ 0 - 1
main.go

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