Browse Source

Merge branch 'dev' of http://ylsjtt.game7000.com:3000/YLSJ/jzhj2024server into dev

cyzhao 5 months ago
parent
commit
dccdb1d705

+ 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-27 14:45:32
+ // 日期: 2024-12-31 14:17:52
 ////////////////////
 
 /**

+ 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-26 15:25:47
+ // 日期: 2024-12-31 11:15:08
 ////////////////////
 
 

+ 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-26 15:25:47
+ // 日期: 2024-12-31 11:15:08
 ////////////////////
 
 

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

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

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-18 18:01:33
+ // 日期: 2024-12-31 14:19:49
 ////////////////////
 
 

+ 16 - 1
Gameserver/App/model/Const/sm_gate.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-19 09:05:13
+ // 日期: 2024-12-31 11:21:57
 ////////////////////
 
 
@@ -21,6 +21,11 @@ class sm_gate
     */
     public $gateId;
 
+    /**
+    * @var Int32 地图资源类型: (第一位: 1四方连续 2上下连续 3固定 4左右连续) default(0) 
+    */
+    public $mapRes;
+
     /**
     * @var String 地图上的装饰物: id,num;id,num;....(最多6种)  
     */
@@ -31,6 +36,16 @@ class sm_gate
     */
     public $weather;
 
+    /**
+    * @var Int32 【废弃2024.7.23】关卡难度:主线难度:1,挑战难度:1,2,3...  
+    */
+    public $gateDifficult;
+
+    /**
+    * @var Int32 关卡序号  
+    */
+    public $gateNum;
+
     /**
     * @var String 名称  
     */

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-19 09:05:13
+ // 日期: 2024-12-31 11:21:57
 ////////////////////
 
 

+ 2 - 2
Gameserver/App/model/Const/sm_globalsettings.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-26 17:19:00
+ // 日期: 2024-12-31 12:00:44
 ////////////////////
 
 
@@ -149,7 +149,7 @@ class sm_globalsettings
     public $sweep_cost_tili;
 
     /**
-    * @var Int32 解锁挑战模块所需的关卡id  
+    * @var Int32 解锁挑战模块所需的关卡id(废除)  
     */
     public $unlock_Challenge_need_gateId;
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-25 14:35:56
+ // 日期: 2024-12-30 17:21:57
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-18 11:56:39
+ // 日期: 2024-12-30 14:53:34
 ////////////////////
 
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2024-12-26 11:35:56
+ // 日期: 2024-12-31 10:21: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-27 09:45:12
+ // 日期: 2024-12-31 11:42:16
 ////////////////////
 
 

+ 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-27 09:45:12
+ // 日期: 2024-12-31 11:42:16
 ////////////////////
 
 

+ 18 - 18
Gameserver/App/model/User/Ins_GateInfo.php

@@ -88,23 +88,22 @@ class Ins_GateInfo extends Object_ext {
         return Ints::Slice($gateId, 0, 1);
     }
 
-    /**
-     * 从gateId中提取关卡地图资源类型(前端用)
-     * @param type $gateId  1 无限地图 2 上下地图 3 有限地图
-     * @return int 0..999
-     */
-    public static function GateMapRes($gateId) {
-        return Ints::Slice($gateId, 1, 4);
-    }
-
-    /**
-     * 从gateId中提取关卡难度(挑战关卡分1,2,3)
-     * @param type $gateId
-     * @return int
-     */
-    public static function GateDifficultyFromId($gateId) {
-        return Ints::Slice($gateId, 5, 1);
-    }
+//    /**
+//     * 从gateId中提取关卡地图资源类型(前端用)
+//     * @param type $gateId  1 无限地图 2 上下地图 3 有限地图
+//     * @return int 0..999
+//     */
+//    public static function GateMapRes($gateId) {
+//        return Ints::Slice($gateId, 1, 4);
+//    }
+//    /**
+//     * 从gateId中提取关卡难度(挑战关卡分1,2,3)
+//     * @param type $gateId
+//     * @return int
+//     */
+//    public static function GateDifficultyFromId($gateId) {
+//        return Ints::Slice($gateId, 5, 1);
+//    }
 
     /**
      * 关卡序号(最大999)
@@ -112,6 +111,7 @@ class Ins_GateInfo extends Object_ext {
      * @return int
      */
     public static function gateNum($gateId) {
-        return Ints::Slice($gateId, 6, 3);
+        return $gateId % 1000;
+//        return Ints::Slice($gateId, 6, 3);
     }
 }

+ 1 - 1
Gameserver/App/process/PayProc.php

@@ -20,7 +20,7 @@ require_once __DIR__ . '/../service_call/pay/official/pay_op.php';
  */
 class PayProc {
 
-    const orderTab = 'tpl_order_tab';
+    const orderTab = 'tab_order_tab';
 
     /**
      * 逻辑分发

+ 7 - 7
Gameserver/App/process/UserProc.php

@@ -84,8 +84,8 @@ class UserProc {
             self::updateUserInfo();                                                 # 回存数据
             FightProc::UpdateRankUserName(req()->uid, $newName);                    # 刷新排行榜上的昵称
             TaskProc::OnReName();
-            
-            return Resp::ok(array("task"=> ctx()->task));
+
+            return Resp::ok(array("task" => ctx()->task));
         }
         return Resp::err(ErrCode::err_db);
     }
@@ -379,7 +379,8 @@ class UserProc {
             $game->base(true)->Reset_tilits();                                      # 修正体力ts
             UserProc::checkContidays();                                         # 连续登录,状态检查
             //PayProc::m_refreshChargeOrders();                                   # 刷新订单, 多平台版本
-            //PayProc::checkDeltest();                                            # 检查内侧充值记录(函数内部会只检查一次)
+            PayProc::selfhelpCheckOrders();
+            PayProc::checkDeltest();                                            # 检查内侧充值记录(函数内部会只检查一次)
             //self::checkMissOrder();                                             #校验是否有漏单
             $game->RegenNewToken();
             UserProc::updateUserInfo();                                         # 这一步回存操作只有在 userInfo正常存在的情况下才进行
@@ -518,7 +519,7 @@ class UserProc {
         if (ctx()->privateState->nextDayLogin > 0 && $curDay - $nextDay >= $day) {
             ActiveProc::ResetLimitTsBuy();
         }
-        
+
         $activePoint_BattlePassMo = GameConfig::subfun_unlock_getItem(Enum_SubFunType::ActivePoint_BattlePass);
         $activePoint_BattlePass_day = $activePoint_BattlePassMo->ts;
         $activePoint_refersh_tsDay = TimeUtil::totalDays(ctx()->privateState->battlePass_activePoint_refersh_ts);
@@ -528,17 +529,16 @@ class UserProc {
             ctx()->privateData(true)->battlePass_taskPoint = 0;
             ActiveProc::ResetBattlePassReward(Enum_SubFunType::ActivePoint_BattlePass);
         }
-        
+
         $tili_BattleBassMo = GameConfig::subfun_unlock_getItem(Enum_SubFunType::Tili_BattleBass);
         $tili_BattleBass_day = $tili_BattleBassMo->ts;
         $tili_BattleBass_refershDay = TimeUtil::totalDays(ctx()->privateState->battlePass_tili_refersh_ts);
         if (ctx()->privateState->battlePass_tili_refersh_ts > 0 && $curDay - $tili_BattleBass_refershDay >= $tili_BattleBass_day) {
-            ctx()->privateState->battlePass_tili_refersh_ts = TimeUtil::getNextDayTs($tili_BattleBassMo->startTs, $tili_BattleBass_day);                              
+            ctx()->privateState->battlePass_tili_refersh_ts = TimeUtil::getNextDayTs($tili_BattleBassMo->startTs, $tili_BattleBass_day);
             ctx()->privateData(true)->battlePass_tili_cost_ts = 0;
             ctx()->privateData(true)->battlePass_tili = 0;
             ActiveProc::ResetBattlePassReward(Enum_SubFunType::Tili_BattleBass);
         }
-            
     }
 
     static function OnLogin_DateDeal() {