Sfoglia il codice sorgente

新手引导记录

cyzhao 5 mesi fa
parent
commit
99e0a0f6fb

+ 1 - 1
Gameserver/App/model/Const/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-31 17:04:22
+ // 日期: 2025-01-02 14:55:44
 ////////////////////
 
 /**

+ 1 - 1
Gameserver/App/model/Const/sm_activeTask.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-31 11:15:08
+ // 日期: 2025-01-02 09:51:57
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_activeTask_type.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-31 11:15:08
+ // 日期: 2025-01-02 09:51:57
 ////////////////////
 
 

+ 10 - 0
Gameserver/App/model/Const/sm_guide.php

@@ -69,5 +69,15 @@ class sm_guide
     */
     public $delayTime;
 
+    /**
+    * @var Int32 没有,是否继续 default(0) 
+    */
+    public $notGoOn;
+
+    /**
+    * @var String 高亮路径  
+    */
+    public $lightPath;
+
 }
 

+ 1 - 1
Gameserver/App/model/Const/sm_hero.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-26 16:05:56
+ // 日期: 2025-01-02 11:51:57
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_heroType_typeId.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-26 16:05:56
+ // 日期: 2025-01-02 11:51:57
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waveItem.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-31 16:35:07
+ // 日期: 2024-12-31 17:51:57
 ////////////////////
 
 

+ 1 - 1
Gameserver/App/model/Const/sm_waves.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-31 16:35:07
+ // 日期: 2024-12-31 17:51:57
 ////////////////////
 
 

+ 12 - 0
Gameserver/App/model/User/Info_UserBase.php

@@ -119,6 +119,18 @@ class Info_UserBase extends Object_ext {
      * @var type
      */
     public $guide = 0;
+    
+    /**
+     * 引导模块
+     * @var type
+     */
+    public $guide_type = 0;
+
+    /**
+     * 引导模块 1:结束标志 
+     * @var type
+     */
+    public $guide_type_forceSave = 0;
 
     public function initialize() {
 //        my_Assert(GameConfig::primordial_data(), "找不到账号初始化数据");         # 防御

+ 4 - 6
Gameserver/App/process/UserProc.php

@@ -53,15 +53,13 @@ class UserProc {
      * 更新新手引导阶段步骤   
      */
     public static function completeNewbieGuide() {
-        list($guideIndex) = req()->paras;                                       # 参数: 新手引导步骤
+        list($guideType,$guide_type_forceSave) = req()->paras;                                       # 参数: 新手引导步骤
                                         
-        ctx()->base(true)->guide = $guideIndex;
+        ctx()->base(true)->guide_type = $guideType;
+        ctx()->base(true)->guide_type_forceSave = $guide_type_forceSave;
                
         UserProc::updateUserInfo();                                             # 回写数据
-        return Resp::ok(array(
-                    //"store" => $user->store, #                                  # 目前来看只涉及到items变化
-                    //"heros" => $user->heros, #                                  # 英雄数据
-        ));
+        return Resp::ok(array());
     }
 
     /**