Parcourir la source

新增isFirst 表示第一次登录

249435196@qq.com il y a 1 an
Parent
commit
845255d54d
2 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 3 2
      script/core/ObjHuman.lua
  2. 1 0
      script/module/scene/Proto.lua

+ 3 - 2
script/core/ObjHuman.lua

@@ -586,7 +586,7 @@ function updateFriendHeart(human, d, logType,item_id, num)
 	return true	
 end
 
-function sendHumanInfo(human)
+function sendHumanInfo(human,isNew)
     -- 处理称号被销毁的
     if human.db.chenghao then
        if not human.db.chenghaoList[human.db.chenghao] then
@@ -611,6 +611,7 @@ function sendHumanInfo(human)
     mm.worldLv = GlobalWorld.getWorldLv()
     mm.openDay = subDay or 0
 	mm.guideState= GuideLogic.checkAllFinish(human)
+	mm.isFrist = isNew and 1 or 0
 
     local drawCardRateList = {}
     local drawCardV2Confs = DrawCardV2Excel
@@ -651,7 +652,7 @@ function onLogin(human, isNew)
 	TequanLogic.jihuopt(human)
     TequanLogic.setHumanTequan(human,human.pf_info)
     doCalc(human)
-	sendHumanInfo(human)
+	sendHumanInfo(human,isNew)
 
 		
 	BagLogic.sendBagList(human)

+ 1 - 0
script/module/scene/Proto.lua

@@ -24,6 +24,7 @@ CG_ASK_DISCONNECT = {
 
 GC_ZZ_HUMAN_INFO = {
     {"roleBase",        1,  RoleBase},
+	{"isFrist",			1,	"int"},     -- 是否第一次登录
 	{"identity",	    1, "string"},
 	{"bannerID",		1, "byte"},
 	{"unionName",		1, "string"},