diff --git a/controller/operation.go b/controller/operation.go index fae1c92..2598d59 100644 --- a/controller/operation.go +++ b/controller/operation.go @@ -1,6 +1,7 @@ package controller import ( + "backend/model" "backend/util" "fmt" @@ -51,11 +52,14 @@ func CopyUserOperation(srcAppID, dstAppID, srcUid, dstUid int) error { DstDb = util.MPool.GetMysqlDB(DstAppConf, 1) } srcData := DbData{} - + _, err = model.UserGM(dstAppID, 1, dstUid, "logout") err = SrcDb.Get(&srcData, "SELECT dwUin, mData, updateTime FROM t_player_mod WHERE dwUin = ? LIMIT 1", srcUid) if err != nil { return err } + if err != nil { + return err + } dstData := DbData{} err = DstDb.Get(&dstData, "SELECT dwUin, mData, updateTime FROM t_player_mod WHERE dwUin = ? LIMIT 1", dstUid) if err != nil {