cyzhao 1 سال پیش
والد
کامیت
9b825ac89f
2فایلهای تغییر یافته به همراه29 افزوده شده و 1 حذف شده
  1. 6 1
      Gameserver/App/base/CmdCode.php
  2. 23 0
      Gameserver/App/process/FightProc.php

+ 6 - 1
Gameserver/App/base/CmdCode.php

@@ -86,7 +86,12 @@ class CmdCode {
      */
     const cmd_user_gameconstinfo = 6002; 
     
-    const cmd_user_setAnimation = 6003;
+    
+    
+    /**
+     * 
+     */
+    const cmd_user_setAnimation = 6004;
             
     // </editor-fold>
     

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

@@ -36,6 +36,29 @@ class FightProc {
         }
     }
     
+    /**
+     * EvolveUnlock
+     * @return type
+     */
+    public static function EvolveUnlock() {
+        list($zhangjieId, $gateId) = req()->paras;
+        
+        $mo = GameConfig::gate_challenge_getItem($zhangjieId);
+        my_Assert($mo!=null, ErrCode::err_const_no);
+        
+//        $list = explode(',', $mo->gates);
+//        my_Assert(in_array($gateId,$list), ErrCode::err_const_no);
+        
+        
+        
+        UserProc::updateUserInfo();
+        $ret = array(          
+            'store' => ctx()->store, 
+            'gates' => ctx()->gates,        
+            );
+        return Resp::ok($ret);
+    }
+       
     /**
      * 挑战奖励领取
      * @return type