cyzhao 1 gadu atpakaļ
vecāks
revīzija
8b13b36a23

+ 7 - 0
Gameserver/App/base/CmdCode.php

@@ -85,6 +85,8 @@ class CmdCode {
      * 常量信息指令
      */
     const cmd_user_gameconstinfo = 6002; 
+    
+    const cmd_user_setAnimation = 6003;
             
     // </editor-fold>
     
@@ -167,6 +169,11 @@ class CmdCode {
     
     const cmd_fight_gateChallengePriceReviced = 6804;
     
+    /**
+     * 进化解锁
+     */
+    const cmd_fight_evolveUnlock = 6805;
+    
     // </editor-fold>
     
     // <editor-fold defaultstate="collapsed" desc="    反射方法    ">

+ 7 - 0
Gameserver/App/model/User/Info_Gates.php

@@ -37,6 +37,13 @@ class Info_Gates extends Object_ext {
      * @var type
      */
     public $GatesChallengeRecord = null;
+    
+    /**
+     * 进化解锁记录
+     * @var type
+     */
+    #[ArrayType]
+    public $evolveUnlockRecord = array();
 
     public function initialize() {
         $startId = 1;

+ 2 - 0
Gameserver/App/process/FightProc.php

@@ -29,6 +29,8 @@ class FightProc {
                 return FightProc::SelectGate();
             case CmdCode::cmd_fight_gateChallengePriceReviced:                  # 6804 
                 return FightProc::GateChallengePriceReviced();
+            case CmdCode::cmd_fight_evolveUnlock:                               # 6805
+                return FightProc::EvolveUnlock();
             default:
                 Err(ErrCode::cmd_err);
         }

+ 16 - 1
Gameserver/App/process/UserProc.php

@@ -25,11 +25,26 @@ class UserProc {
             case CmdCode::cmd_user_loginuserinfo:                               # 6001 登录/新玩家直接注册并登录
                 return UserProc::loginUserInfo();
             case CmdCode::cmd_user_gameconstinfo:                               # 6002 下载游戏配置
-                return UserProc::downloadConstInfo();            
+                return UserProc::downloadConstInfo();  
+            case CmdCode::cmd_user_setAnimation:
+                return UserProc::setAnimation();  
             default:
                 Err(ErrCode::cmd_err);
         }
     }
+    
+    public static function setAnimation() {
+        list($tag) = req()->paras;
+        
+        if (ctx()->baseInfo->animation == 0 && $tag>0)
+        {
+            ctx()->baseInfo->animation = 1;
+        }
+             
+        UserProc::updateUserInfo();
+        $ret = array();
+        return Resp::ok($ret);
+    }
 
     /**
      * 检测遗漏订单