cyzhao před 1 rokem
rodič
revize
b0410b706c

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 369 - 0
DevOps/flscfg/sqlback/jzhj2023_cfg20230919155727.sql


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 369 - 0
DevOps/flscfg/sqlback/jzhj2023_cfg20230919163913.sql


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 369 - 0
DevOps/flscfg/sqlback/jzhj2023_cfg20230919170325.sql


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 369 - 0
DevOps/flscfg/sqlback/jzhj2023_cfg20230920112918.sql


+ 34 - 2
Gameserver/App/configs/GameConfig.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-18 15:02:39
+ // 日期: 2023-09-19 17:03:23
 ////////////////////
 
 namespace loyalsoft;
@@ -495,6 +495,22 @@ class GameConfig {
         return self::get_hash_item('active_day7_accumulate', $itemid);
     }
     /**
+    * 装备合成(进化)品阶表
+    * @return \equip_evolve
+    */
+    public static function equip_evolve()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'equip_evolve');
+    }
+    /**
+    * @return \sm_equip_evolve equip_evolve item数据 
+    */
+    public static function equip_evolve_getItem($rarity, $qual, $posId)
+    { 
+        return self::get_hash_item('equip_evolve', "$rarity-$qual-$posId");
+    }
+    /**
     * 装备合成表
     * @return \equip_compose
     */
@@ -524,7 +540,7 @@ class GameConfig {
     */
     public static function plot_getItem($gateId, $stage)
     { 
-        return self::get_hash_item('plot', $gateId)->$stage;
+        return self::get_hash_item('plot', "$gateId-$stage");
     }
     /**
     * buff配置表
@@ -575,6 +591,22 @@ class GameConfig {
         return self::get_hash_item('task_step', $itemid);
     }
     /**
+    * 任务卡
+    * @return \taskcard
+    */
+    public static function taskcard()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'taskcard');
+    }
+    /**
+    * @return \sm_taskcard taskcard item数据 
+    */
+    public static function taskcard_getItem($itemid)
+    { 
+        return self::get_hash_item('taskcard', $itemid);
+    }
+    /**
     * 当前版本(时间戳)
     * @return \ver
     */

+ 335 - 321
Gameserver/App/model/Const/GameConfig.php

@@ -1,39 +1,36 @@
 <?php
-
 ////////////////////
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-18 15:02:39
+ // 日期: 2023-09-19 17:03:23
 ////////////////////
 
 /**
- * 常量配置数据
+ * 常量配置数据 
  */
 class GameConfig {
-// <editor-fold defaultstate="collapsed" desc="  基础代码 ">
-
+// <editor-fold defaultstate="collapsed" desc="  基础代码 ">    
     /**
-     * 是否启用codegen
+     * 是否启用codegen 
      */
-    private static function isCG() {
-        return defined('CodeGen_Enabled') && CodeGen_Enabled;
+    private static function isCG()  {
+        return defined('CodeGen_Enabled') && CodeGen_Enabled; 
     }
-
     /**
      * @var bool 分区是否使用独立的常量配置数据
      */
     private static $useZoneId = false;
-
     /**
      * 追加分区列表字符串
      * @return string
      */
-    private static function zoneid() {
+    private static function zoneid()
+    {
         global $zoneid;
         return self::$useZoneId ? "-zone$zoneid" : "";
     }
-
+	
     /**
      * @return ClientVersion
      */
@@ -85,481 +82,480 @@ class GameConfig {
         }
         return null;
     }
-
 // </editor-fold>
-
     /**
-     * 全局参数
-     * @return \globalsettings
-     */
-    public static function globalsettings() {
-        static $a = null;
+    * 全局参数
+    * @return \globalsettings
+    */
+    public static function globalsettings()
+    { 
+        static $a = null; 
         return self::initValue($a, 'globalsettings');
     }
-
     /**
-     * 停服计划
-     * @return \service_schedule
-     */
-    public static function service_schedule() {
-        static $a = null;
+    * 停服计划
+    * @return \service_schedule
+    */
+    public static function service_schedule()
+    { 
+        static $a = null; 
         return self::initValue($a, 'service_schedule');
     }
-
     /**
-     * @return \sm_service_schedule service_schedule item数据
-     */
-    public static function service_schedule_getItem($itemid) {
+    * @return \sm_service_schedule service_schedule item数据 
+    */
+    public static function service_schedule_getItem($itemid)
+    { 
         return self::get_hash_item('service_schedule', $itemid);
     }
-
     /**
-     * 道具表
-     * @return \item
-     */
-    public static function item() {
-        static $a = null;
+    * 道具表
+    * @return \item
+    */
+    public static function item()
+    { 
+        static $a = null; 
         return self::initValue($a, 'item');
     }
-
     /**
-     * @return \sm_item item item数据
-     */
-    public static function item_getItem($itemid) {
+    * @return \sm_item item item数据 
+    */
+    public static function item_getItem($itemid)
+    { 
         return self::get_hash_item('item', $itemid);
     }
-
     /**
-     * 系统邮件
-     * @return \sysmail
-     */
-    public static function sysmail() {
-        static $a = null;
+    * 系统邮件
+    * @return \sysmail
+    */
+    public static function sysmail()
+    { 
+        static $a = null; 
         return self::initValue($a, 'sysmail');
     }
-
     /**
-     * @return \sm_sysmail sysmail item数据
-     */
-    public static function sysmail_getItem($itemid) {
+    * @return \sm_sysmail sysmail item数据 
+    */
+    public static function sysmail_getItem($itemid)
+    { 
         return self::get_hash_item('sysmail', $itemid);
     }
-
     /**
-     * 客户端版本信息
-     * @return \clientVersionHistory
-     */
-    public static function clientVersionHistory() {
-        static $a = null;
+    * 客户端版本信息
+    * @return \clientVersionHistory
+    */
+    public static function clientVersionHistory()
+    { 
+        static $a = null; 
         return self::initValue($a, 'clientVersionHistory');
     }
-
     /**
-     * @return \sm_clientVersionHistory clientVersionHistory item数据
-     */
-    public static function clientVersionHistory_getItem($itemid) {
+    * @return \sm_clientVersionHistory clientVersionHistory item数据 
+    */
+    public static function clientVersionHistory_getItem($itemid)
+    { 
         return self::get_hash_item('clientVersionHistory', $itemid);
     }
-
     /**
-     * 分区列表
-     * @return \zonelist
-     */
-    public static function zonelist() {
-        static $a = null;
+    * 分区列表
+    * @return \zonelist
+    */
+    public static function zonelist()
+    { 
+        static $a = null; 
         return self::initValue($a, 'zonelist');
     }
-
     /**
-     * @return \sm_zonelist zonelist item数据
-     */
-    public static function zonelist_getItem($itemid) {
+    * @return \sm_zonelist zonelist item数据 
+    */
+    public static function zonelist_getItem($itemid)
+    { 
         return self::get_hash_item('zonelist', $itemid);
     }
-
     /**
-     * 错误信息表
-     * @return \errmsg
-     */
-    public static function errmsg() {
-        static $a = null;
+    * 错误信息表
+    * @return \errmsg
+    */
+    public static function errmsg()
+    { 
+        static $a = null; 
         return self::initValue($a, 'errmsg');
     }
-
     /**
-     * @return \sm_errmsg errmsg item数据
-     */
-    public static function errmsg_getItem($itemid) {
+    * @return \sm_errmsg errmsg item数据 
+    */
+    public static function errmsg_getItem($itemid)
+    { 
         return self::get_hash_item('errmsg', $itemid);
     }
-
     /**
-     * 技能表
-     * @return \skills
-     */
-    public static function skills() {
-        static $a = null;
+    * 技能表
+    * @return \skills
+    */
+    public static function skills()
+    { 
+        static $a = null; 
         return self::initValue($a, 'skills');
     }
-
     /**
-     * @return \sm_skills skills item数据
-     */
-    public static function skills_getItem($itemid) {
+    * @return \sm_skills skills item数据 
+    */
+    public static function skills_getItem($itemid)
+    { 
         return self::get_hash_item('skills', $itemid);
     }
-
     /**
-     * 活动: 七日签到
-     * @return \activity_day7
-     */
-    public static function activity_day7() {
-        static $a = null;
+    * 活动: 七日签到
+    * @return \activity_day7
+    */
+    public static function activity_day7()
+    { 
+        static $a = null; 
         return self::initValue($a, 'activity_day7');
     }
-
     /**
-     * @return \sm_activity_day7 activity_day7 item数据
-     */
-    public static function activity_day7_getItem($itemid) {
+    * @return \sm_activity_day7 activity_day7 item数据 
+    */
+    public static function activity_day7_getItem($itemid)
+    { 
         return self::get_hash_item('activity_day7', $itemid);
     }
-
     /**
-     * 公共兑换码
-     * @return \token_PublicGift
-     */
-    public static function token_PublicGift() {
-        static $a = null;
+    * 公共兑换码
+    * @return \token_PublicGift
+    */
+    public static function token_PublicGift()
+    { 
+        static $a = null; 
         return self::initValue($a, 'token_PublicGift');
     }
-
     /**
-     * @return \sm_token_PublicGift token_PublicGift item数据
-     */
-    public static function token_PublicGift_getItem($itemid) {
+    * @return \sm_token_PublicGift token_PublicGift item数据 
+    */
+    public static function token_PublicGift_getItem($itemid)
+    { 
         return self::get_hash_item('token_PublicGift', $itemid);
     }
-
     /**
-     * 活动: 体力加油站
-     * @return \activity_tiligift
-     */
-    public static function activity_tiligift() {
-        static $a = null;
+    * 活动: 体力加油站
+    * @return \activity_tiligift
+    */
+    public static function activity_tiligift()
+    { 
+        static $a = null; 
         return self::initValue($a, 'activity_tiligift');
     }
-
     /**
-     * @return \sm_activity_tiligift activity_tiligift item数据
-     */
-    public static function activity_tiligift_getItem($itemid) {
+    * @return \sm_activity_tiligift activity_tiligift item数据 
+    */
+    public static function activity_tiligift_getItem($itemid)
+    { 
         return self::get_hash_item('activity_tiligift', $itemid);
     }
-
     /**
-     * 活动: 等级礼包
-     * @return \activity_levelgift
-     */
-    public static function activity_levelgift() {
-        static $a = null;
+    * 活动: 等级礼包
+    * @return \activity_levelgift
+    */
+    public static function activity_levelgift()
+    { 
+        static $a = null; 
         return self::initValue($a, 'activity_levelgift');
     }
-
     /**
-     * @return \sm_activity_levelgift activity_levelgift item数据
-     */
-    public static function activity_levelgift_getItem($itemid) {
+    * @return \sm_activity_levelgift activity_levelgift item数据 
+    */
+    public static function activity_levelgift_getItem($itemid)
+    { 
         return self::get_hash_item('activity_levelgift', $itemid);
     }
-
     /**
-     * 技能表根据分类分组
-     * @return \skillTypeArr
-     */
-    public static function skillTypeArr() {
-        static $a = null;
+    * 技能表根据分类分组
+    * @return \skillTypeArr
+    */
+    public static function skillTypeArr()
+    { 
+        static $a = null; 
         return self::initValue($a, 'skillTypeArr');
     }
-
     /**
-     * @return \sm_skillTypeArr skillTypeArr itemArray
-     */
-    public static function skillTypeArr_getItemArray($key) {
+    * @return \sm_skillTypeArr skillTypeArr itemArray 
+    */
+    public static function skillTypeArr_getItemArray($key)
+    { 
         return self::get_hash_item('skillTypeArr', $key);
     }
-
     /**
-     * 章节表
-     * @return \gate
-     */
-    public static function gate() {
-        static $a = null;
+    * 章节表
+    * @return \gate
+    */
+    public static function gate()
+    { 
+        static $a = null; 
         return self::initValue($a, 'gate');
     }
-
     /**
-     * @return \sm_gate gate item数据
-     */
-    public static function gate_getItem($itemid) {
+    * @return \sm_gate gate item数据 
+    */
+    public static function gate_getItem($itemid)
+    { 
         return self::get_hash_item('gate', $itemid);
     }
-
     /**
-     * 角色
-     * @return \hero
-     */
-    public static function hero() {
-        static $a = null;
+    * 角色
+    * @return \hero
+    */
+    public static function hero()
+    { 
+        static $a = null; 
         return self::initValue($a, 'hero');
     }
-
     /**
-     * @return \sm_hero hero item数据
-     */
-    public static function hero_getItem($itemid) {
+    * @return \sm_hero hero item数据 
+    */
+    public static function hero_getItem($itemid)
+    { 
         return self::get_hash_item('hero', $itemid);
     }
-
     /**
-     * 装备表
-     * @return \equip
-     */
-    public static function equip() {
-        static $a = null;
+    * 装备表
+    * @return \equip
+    */
+    public static function equip()
+    { 
+        static $a = null; 
         return self::initValue($a, 'equip');
     }
-
     /**
-     * @return \sm_equip equip item数据
-     */
-    public static function equip_getItem($itemid) {
+    * @return \sm_equip equip item数据 
+    */
+    public static function equip_getItem($itemid)
+    { 
         return self::get_hash_item('equip', $itemid);
     }
-
     /**
-     * 装备升级表
-     * @return \equip_levelupgrade
-     */
-    public static function equip_levelupgrade() {
-        static $a = null;
+    * 装备升级表
+    * @return \equip_levelupgrade
+    */
+    public static function equip_levelupgrade()
+    { 
+        static $a = null; 
         return self::initValue($a, 'equip_levelupgrade');
     }
-
     /**
-     * @return \sm_equip_levelupgrade equip_levelupgrade item数据
-     */
-    public static function equip_levelupgrade_getItem($itemid) {
+    * @return \sm_equip_levelupgrade equip_levelupgrade item数据 
+    */
+    public static function equip_levelupgrade_getItem($itemid)
+    { 
         return self::get_hash_item('equip_levelupgrade', $itemid);
     }
-
     /**
-     * 章节礼包表
-     * @return \shop_gategift
-     */
-    public static function shop_gategift() {
-        static $a = null;
+    * 章节礼包表
+    * @return \shop_gategift
+    */
+    public static function shop_gategift()
+    { 
+        static $a = null; 
         return self::initValue($a, 'shop_gategift');
     }
-
     /**
-     * @return \sm_shop_gategift shop_gategift item数据
-     */
-    public static function shop_gategift_getItem($itemid) {
+    * @return \sm_shop_gategift shop_gategift item数据 
+    */
+    public static function shop_gategift_getItem($itemid)
+    { 
         return self::get_hash_item('shop_gategift', $itemid);
     }
-
     /**
-     * 每日商店
-     * @return \shop_daily
-     */
-    public static function shop_daily() {
-        static $a = null;
+    * 每日商店
+    * @return \shop_daily
+    */
+    public static function shop_daily()
+    { 
+        static $a = null; 
         return self::initValue($a, 'shop_daily');
     }
-
     /**
-     * @return \sm_shop_daily shop_daily item数据
-     */
-    public static function shop_daily_getItem($itemid) {
+    * @return \sm_shop_daily shop_daily item数据 
+    */
+    public static function shop_daily_getItem($itemid)
+    { 
         return self::get_hash_item('shop_daily', $itemid);
     }
-
     /**
-     * 钻石
-     * @return \shop_cash
-     */
-    public static function shop_cash() {
-        static $a = null;
+    * 钻石
+    * @return \shop_cash
+    */
+    public static function shop_cash()
+    { 
+        static $a = null; 
         return self::initValue($a, 'shop_cash');
     }
-
     /**
-     * @return \sm_shop_cash shop_cash item数据
-     */
-    public static function shop_cash_getItem($itemid) {
+    * @return \sm_shop_cash shop_cash item数据 
+    */
+    public static function shop_cash_getItem($itemid)
+    { 
         return self::get_hash_item('shop_cash', $itemid);
     }
-
     /**
-     * 金币
-     * @return \shop_gold
-     */
-    public static function shop_gold() {
-        static $a = null;
+    * 金币
+    * @return \shop_gold
+    */
+    public static function shop_gold()
+    { 
+        static $a = null; 
         return self::initValue($a, 'shop_gold');
     }
-
     /**
-     * @return \sm_shop_gold shop_gold item数据
-     */
-    public static function shop_gold_getItem($itemid) {
+    * @return \sm_shop_gold shop_gold item数据 
+    */
+    public static function shop_gold_getItem($itemid)
+    { 
         return self::get_hash_item('shop_gold', $itemid);
     }
-
     /**
-     *
-     * @return \shop_supply
-     */
-    public static function shop_supply() {
-        static $a = null;
+    * 
+    * @return \shop_supply
+    */
+    public static function shop_supply()
+    { 
+        static $a = null; 
         return self::initValue($a, 'shop_supply');
     }
-
     /**
-     * @return \sm_shop_supply shop_supply item数据
-     */
-    public static function shop_supply_getItem($itemid) {
+    * @return \sm_shop_supply shop_supply item数据 
+    */
+    public static function shop_supply_getItem($itemid)
+    { 
         return self::get_hash_item('shop_supply', $itemid);
     }
-
     /**
-     * 商城军备
-     * @return \shop_junbei
-     */
-    public static function shop_junbei() {
-        static $a = null;
+    * 商城军备
+    * @return \shop_junbei
+    */
+    public static function shop_junbei()
+    { 
+        static $a = null; 
         return self::initValue($a, 'shop_junbei');
     }
-
     /**
-     * @return \sm_shop_junbei shop_junbei item数据
-     */
-    public static function shop_junbei_getItem($itemid) {
+    * @return \sm_shop_junbei shop_junbei item数据 
+    */
+    public static function shop_junbei_getItem($itemid)
+    { 
         return self::get_hash_item('shop_junbei', $itemid);
     }
-
     /**
-     * 挑战表
-     * @return \gate_challenge
-     */
-    public static function gate_challenge() {
-        static $a = null;
+    * 挑战表
+    * @return \gate_challenge
+    */
+    public static function gate_challenge()
+    { 
+        static $a = null; 
         return self::initValue($a, 'gate_challenge');
     }
-
     /**
-     * @return \sm_gate_challenge gate_challenge item数据
-     */
-    public static function gate_challenge_getItem($itemid) {
+    * @return \sm_gate_challenge gate_challenge item数据 
+    */
+    public static function gate_challenge_getItem($itemid)
+    { 
         return self::get_hash_item('gate_challenge', $itemid);
     }
-
     /**
-     * 进化表
-     * @return \evolve
-     */
-    public static function evolve() {
-        static $a = null;
+    * 进化表
+    * @return \evolve
+    */
+    public static function evolve()
+    { 
+        static $a = null; 
         return self::initValue($a, 'evolve');
     }
-
     /**
-     * @return \sm_evolve evolve item数据
-     */
-    public static function evolve_getItem($itemid) {
+    * @return \sm_evolve evolve item数据 
+    */
+    public static function evolve_getItem($itemid)
+    { 
         return self::get_hash_item('evolve', $itemid);
     }
-
     /**
-     * 7日签到累计
-     * @return \active_day7_accumulate
-     */
-    public static function active_day7_accumulate() {
-        static $a = null;
+    * 7日签到累计
+    * @return \active_day7_accumulate
+    */
+    public static function active_day7_accumulate()
+    { 
+        static $a = null; 
         return self::initValue($a, 'active_day7_accumulate');
     }
-
     /**
-     * @return \sm_active_day7_accumulate active_day7_accumulate item数据
-     */
-    public static function active_day7_accumulate_getItem($itemid) {
+    * @return \sm_active_day7_accumulate active_day7_accumulate item数据 
+    */
+    public static function active_day7_accumulate_getItem($itemid)
+    { 
         return self::get_hash_item('active_day7_accumulate', $itemid);
     }
-
     /**
-     * 装备合成(进化)品阶表
-     * @return \equip_evolve
-     */
-    public static function equip_evolve() {
-        static $a = null;
+    * 装备合成(进化)品阶表
+    * @return \equip_evolve
+    */
+    public static function equip_evolve()
+    { 
+        static $a = null; 
         return self::initValue($a, 'equip_evolve');
     }
-
     /**
-     * @return \sm_equip_evolve equip_evolve item数据
-     */
-    public static function equip_evolve_getItem($rarity, $qual, $posId) {
+    * @return \sm_equip_evolve equip_evolve item数据 
+    */
+    public static function equip_evolve_getItem($rarity, $qual, $posId)
+    { 
         return self::get_hash_item('equip_evolve', "$rarity-$qual-$posId");
     }
-
     /**
-     * 装备合成表
-     * @return \equip_compose
-     */
-    public static function equip_compose() {
-        static $a = null;
+    * 装备合成表
+    * @return \equip_compose
+    */
+    public static function equip_compose()
+    { 
+        static $a = null; 
         return self::initValue($a, 'equip_compose');
     }
-
     /**
-     * @return \sm_equip_compose equip_compose item数据
-     */
-    public static function equip_compose_getItem($itemid) {
+    * @return \sm_equip_compose equip_compose item数据 
+    */
+    public static function equip_compose_getItem($itemid)
+    { 
         return self::get_hash_item('equip_compose', $itemid);
     }
-
     /**
-     * 剧情表
-     * @return \plot
-     */
-    public static function plot() {
-        static $a = null;
+    * 剧情表
+    * @return \plot
+    */
+    public static function plot()
+    { 
+        static $a = null; 
         return self::initValue($a, 'plot');
     }
-
     /**
-     * @return \sm_plot plot item数据
-     */
-    public static function plot_getItem($gateId, $stage) {
+    * @return \sm_plot plot item数据 
+    */
+    public static function plot_getItem($gateId, $stage)
+    { 
         return self::get_hash_item('plot', "$gateId-$stage");
     }
-
     /**
-     * buff配置表
-     * @return \buff
-     */
-    public static function buff() {
-        static $a = null;
+    * buff配置表
+    * @return \buff
+    */
+    public static function buff()
+    { 
+        static $a = null; 
         return self::initValue($a, 'buff');
     }
-
     /**
-     * @return \sm_buff buff item数据
-     */
-    public static function buff_getItem($itemid) {
+    * @return \sm_buff buff item数据 
+    */
+    public static function buff_getItem($itemid)
+    { 
         return self::get_hash_item('buff', $itemid);
-    } 
+    }
     /**
     * 每日任务累计表
     * @return \task_accumulate
@@ -593,20 +589,38 @@ class GameConfig {
         return self::get_hash_item('task_step', $itemid);
     }
     /**
-     * 当前版本(时间戳)
-     * @return \ver
-     */
-    public static function ver() {
-        static $a = null;
+    * 任务卡
+    * @return \taskcard
+    */
+    public static function taskcard()
+    { 
+        static $a = null; 
+        return self::initValue($a, 'taskcard');
+    }
+    /**
+    * @return \sm_taskcard taskcard item数据 
+    */
+    public static function taskcard_getItem($itemid)
+    { 
+        return self::get_hash_item('taskcard', $itemid);
+    }
+    /**
+    * 当前版本(时间戳)
+    * @return \ver
+    */
+    public static function ver()
+    { 
+        static $a = null; 
         return self::initValue($a, 'ver', false);
     }
-
     /**
-     * 客户端配置数据
-     * @return \client
-     */
-    public static function client() {
-        static $a = null;
+    * 客户端配置数据
+    * @return \client
+    */
+    public static function client()
+    { 
+        static $a = null; 
         return self::initValue($a, 'client', false);
     }
 }
+

+ 21 - 18
Gameserver/App/model/Const/sm_buff.php

@@ -1,5 +1,4 @@
 <?php
-
 ////////////////////
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
@@ -7,29 +6,31 @@
  // 日期: 2023-09-15 15:34:51
 ////////////////////
 
+
 /**
  * Static Model buff buff配置表
  */
-class sm_buff {
+class sm_buff
+{
 
     /**
-     * @var Int32 唯一id
-     */
+    * @var Int32 唯一id  
+    */
     public $id;
 
     /**
-     * @var String 名称
-     */
+    * @var String 名称  
+    */
     public $name;
 
     /**
-     * @var String buff描述
-     */
+    * @var String buff描述  
+    */
     public $desc;
 
     /**
-     * @var String 附加对象: "none" 无, 角色 'hero', 怪'monster' default(none)
-     */
+    * @var String 附加对象: "none" 无, 角色 'hero', 怪'monster' default(none) 
+    */
     public $attachTarget;
 
     /**
@@ -50,27 +51,29 @@ class sm_buff {
     public $actionType;
 
     /**
-     * @var Single 行为参数1: default(0)
-     */
+    * @var Single 行为参数1: default(0) 
+    */
     public $actionParam1;
 
     /**
-     * @var Single 行为参数2: default(0)
-     */
+    * @var Single 行为参数2: default(0) 
+    */
     public $actionParam2;
 
     /**
-     * @var Single 生存时间(秒) default(0)
-     */
+    * @var Single 生存时间(秒) default(0) 
+    */
     public $lifeTime;
 
     /**
-     * @var Single 生效逻辑触发时间间隔(秒) default(1)
-     */
+    * @var Single 生效逻辑触发时间间隔(秒) default(1) 
+    */
     public $effectInterval;
 
     /**
     * @var Int32 生效次数: 1代表永久有效, 大于1的值可以作为次数限制,也可以不用这个字段 default(1) 
     */
     public $effectTimes;
+
 }
+

+ 4 - 4
Gameserver/App/model/Const/sm_gate_challenge.php

@@ -24,14 +24,14 @@ class sm_gate_challenge
     public $gateId;
 
     /**
-    * @var String 通关奖励  
+    * @var String 每一章节的关卡逗号隔开  
     */
-    public $reward;
+    public $gates;
 
     /**
-    * @var String 每一章节的关卡逗号隔开  
+    * @var String 图片  
     */
-    public $gates;
+    public $icon;
 
 }
 

+ 66 - 63
Gameserver/App/model/Const/sm_skillTypeArr.php

@@ -1,5 +1,4 @@
 <?php
-
 ////////////////////
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
@@ -7,156 +6,160 @@
  // 日期: 2023-09-15 17:04:51
 ////////////////////
 
+
 /**
  * Static Model skillTypeArr 技能表根据分类分组
  */
-class sm_skillTypeArr {
+class sm_skillTypeArr
+{
 
     /**
-     * @var Int32 用途未知!!请到数据库中添加字段注释。
-     */
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
+    */
     public $id;
 
     /**
-     * @var Int32 技能id default(0)
-     */
+    * @var Int32 技能id default(0) 
+    */
     public $skillId;
 
     /**
-     * @var Int32 下一等级
-     */
+    * @var Int32 下一等级  
+    */
     public $next;
 
     /**
-     * @var Int32 同一种技能的类别区分(1~6星是同一个id) default(0)
-     */
+    * @var Int32 同一种技能的类别区分(1~6星是同一个id) default(0) 
+    */
     public $typeId;
 
     /**
-     * @var Int32 星级(6代表终极武器) default(0)
-     */
+    * @var Int32 星级(6代表终极武器) default(0) 
+    */
     public $starLv;
 
     /**
-     * @var String 技能名称
-     */
+    * @var String 技能名称  
+    */
     public $name;
 
     /**
-     * @var String 图标
-     */
+    * @var String 图标  
+    */
     public $icon;
 
     /**
-     * @var Int32 类型:主动还是被动1:主动;2:被动;3:金币鸡腿技能 default(0)
-     */
+    * @var Int32 类型:主动还是被动1:主动;2:被动;3:金币鸡腿技能 default(0) 
+    */
     public $skillType;
 
     /**
-     * @var String 组合技能
-     */
+    * @var String 组合技能  
+    */
     public $composeSkill;
 
     /**
-     * @var String 描述信息
-     */
+    * @var String 描述信息  
+    */
     public $desc;
 
     /**
-     * @var String 用途未知!!请到数据库中添加字段注释。
-     */
+    * @var String 用途未知!!请到数据库中添加字段注释。  
+    */
     public $etc;
 
     /**
-     * @var Single 伤害倍率
-     */
+    * @var Single 伤害倍率  
+    */
     public $atkRate;
 
     /**
-     * @var Int32 子弹数量
-     */
+    * @var Int32 子弹数量  
+    */
     public $bullet_num;
 
     /**
-     * @var Single 子弹体积(倍率)
-     */
+    * @var Single 子弹体积(倍率)  
+    */
     public $bullet_size;
 
     /**
-     * @var Single 子弹飞行速度修正(倍率)
-     */
+    * @var Single 子弹飞行速度修正(倍率)  
+    */
     public $bullet_speed;
 
     /**
-     * @var Single 子弹转动速度修正(倍率) default(0)
-     */
+    * @var Single 子弹转动速度修正(倍率) default(0) 
+    */
     public $bullet_rotationSpeed;
 
     /**
-     * @var Single 子弹发射间隔(秒) default(0.1)
-     */
+    * @var Single 子弹发射间隔(秒) default(0.1) 
+    */
     public $bullet_ejectInterval;
 
     /**
-     * @var Single 技能持续(生存)时间(具体值则指秒数, 0 代表无限制) default(0.000)
-     */
+    * @var Single 技能持续(生存)时间(具体值则指秒数, 0 代表无限制) default(0.000) 
+    */
     public $bullet_sustainTime;
 
     /**
-     * @var String 子弹命中效果: 0(默认,无:错误值)1 命中消失 2(爆炸)3(穿透)4(击退(包含击退距离))5(边缘回弹)6(怪物+边缘回弹)7(自动锁定)
-     */
+    * @var String 子弹命中效果: 0(默认,无:错误值)1 命中消失 2(爆炸)3(穿透)4(击退(包含击退距离))5(边缘回弹)6(怪物+边缘回弹)7(自动锁定)  
+    */
     public $bullet_hitType;
 
     /**
-     * @var Single 子弹爆炸范围(倍率) default(1)
-     */
+    * @var Single 子弹爆炸范围(倍率) default(1) 
+    */
     public $bullet_explodeRange;
 
     /**
-     * @var Single 击退距离% default(0)
-     */
+    * @var Single 击退距离% default(0) 
+    */
     public $repulse_distance;
 
     /**
-     * @var Int32 子弹伤害次数(0,无限,具体值则按数量执行)
-     */
+    * @var Int32 子弹伤害次数(0,无限,具体值则按数量执行)  
+    */
     public $bullet_damageTimes;
 
     /**
-     * @var Int32 0默认值
-     *  1自己
-     *  2敌方
-     *
-     */
+    * @var Int32 0默认值
+    *  1自己
+    *  2敌方
+    *    
+    */
     public $aim_type;
 
     /**
-     * @var Single 攻击距离或范围(倍率值)
-     */
+    * @var Single 攻击距离或范围(倍率值)  
+    */
     public $aim_para;
 
     /**
-     * @var Single 冷却时间(秒)
-     */
+    * @var Single 冷却时间(秒)  
+    */
     public $coolTime;
 
     /**
-     * @var Int32 buffid: 灼烧/流血、减速或麻痹等
-     */
+    * @var Int32 buffid: 灼烧/流血、减速或麻痹等  
+    */
     public $buffId;
 
     /**
-     * @var String 词条编号,如有多条, 逗号分隔 default(0)
-     */
+    * @var String 词条编号,如有多条, 逗号分隔 default(0) 
+    */
     public $predicates;
 
     /**
-     * @var Int32 立即: 获得金币num
-     */
+    * @var Int32 立即: 获得金币num  
+    */
     public $immediate_gold;
 
     /**
-     * @var Single 立即: 获得生命%
-     */
+    * @var Single 立即: 获得生命%  
+    */
     public $immediate_hp;
+
 }
+

+ 66 - 63
Gameserver/App/model/Const/sm_skills.php

@@ -1,5 +1,4 @@
 <?php
-
 ////////////////////
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
@@ -7,156 +6,160 @@
  // 日期: 2023-09-15 17:04:51
 ////////////////////
 
+
 /**
  * Static Model skills 技能表
  */
-class sm_skills {
+class sm_skills
+{
 
     /**
-     * @var Int32 用途未知!!请到数据库中添加字段注释。
-     */
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
+    */
     public $id;
 
     /**
-     * @var Int32 技能id default(0)
-     */
+    * @var Int32 技能id default(0) 
+    */
     public $skillId;
 
     /**
-     * @var Int32 下一等级
-     */
+    * @var Int32 下一等级  
+    */
     public $next;
 
     /**
-     * @var Int32 同一种技能的类别区分(1~6星是同一个id) default(0)
-     */
+    * @var Int32 同一种技能的类别区分(1~6星是同一个id) default(0) 
+    */
     public $typeId;
 
     /**
-     * @var Int32 星级(6代表终极武器) default(0)
-     */
+    * @var Int32 星级(6代表终极武器) default(0) 
+    */
     public $starLv;
 
     /**
-     * @var String 技能名称
-     */
+    * @var String 技能名称  
+    */
     public $name;
 
     /**
-     * @var String 图标
-     */
+    * @var String 图标  
+    */
     public $icon;
 
     /**
-     * @var Int32 类型:主动还是被动1:主动;2:被动;3:金币鸡腿技能 default(0)
-     */
+    * @var Int32 类型:主动还是被动1:主动;2:被动;3:金币鸡腿技能 default(0) 
+    */
     public $skillType;
 
     /**
-     * @var String 组合技能
-     */
+    * @var String 组合技能  
+    */
     public $composeSkill;
 
     /**
-     * @var String 描述信息
-     */
+    * @var String 描述信息  
+    */
     public $desc;
 
     /**
-     * @var String 用途未知!!请到数据库中添加字段注释。
-     */
+    * @var String 用途未知!!请到数据库中添加字段注释。  
+    */
     public $etc;
 
     /**
-     * @var Single 伤害倍率
-     */
+    * @var Single 伤害倍率  
+    */
     public $atkRate;
 
     /**
-     * @var Int32 子弹数量
-     */
+    * @var Int32 子弹数量  
+    */
     public $bullet_num;
 
     /**
-     * @var Single 子弹体积(倍率)
-     */
+    * @var Single 子弹体积(倍率)  
+    */
     public $bullet_size;
 
     /**
-     * @var Single 子弹飞行速度修正(倍率)
-     */
+    * @var Single 子弹飞行速度修正(倍率)  
+    */
     public $bullet_speed;
 
     /**
-     * @var Single 子弹转动速度修正(倍率) default(0)
-     */
+    * @var Single 子弹转动速度修正(倍率) default(0) 
+    */
     public $bullet_rotationSpeed;
 
     /**
-     * @var Single 子弹发射间隔(秒) default(0.1)
-     */
+    * @var Single 子弹发射间隔(秒) default(0.1) 
+    */
     public $bullet_ejectInterval;
 
     /**
-     * @var Single 技能持续(生存)时间(具体值则指秒数, 0 代表无限制) default(0.000)
-     */
+    * @var Single 技能持续(生存)时间(具体值则指秒数, 0 代表无限制) default(0.000) 
+    */
     public $bullet_sustainTime;
 
     /**
-     * @var String 子弹命中效果: 0(默认,无:错误值)1 命中消失 2(爆炸)3(穿透)4(击退(包含击退距离))5(边缘回弹)6(怪物+边缘回弹)7(自动锁定)
-     */
+    * @var String 子弹命中效果: 0(默认,无:错误值)1 命中消失 2(爆炸)3(穿透)4(击退(包含击退距离))5(边缘回弹)6(怪物+边缘回弹)7(自动锁定)  
+    */
     public $bullet_hitType;
 
     /**
-     * @var Single 子弹爆炸范围(倍率) default(1)
-     */
+    * @var Single 子弹爆炸范围(倍率) default(1) 
+    */
     public $bullet_explodeRange;
 
     /**
-     * @var Single 击退距离% default(0)
-     */
+    * @var Single 击退距离% default(0) 
+    */
     public $repulse_distance;
 
     /**
-     * @var Int32 子弹伤害次数(0,无限,具体值则按数量执行)
-     */
+    * @var Int32 子弹伤害次数(0,无限,具体值则按数量执行)  
+    */
     public $bullet_damageTimes;
 
     /**
-     * @var Int32 0默认值
-     *  1自己
-     *  2敌方
-     *
-     */
+    * @var Int32 0默认值
+    *  1自己
+    *  2敌方
+    *    
+    */
     public $aim_type;
 
     /**
-     * @var Single 攻击距离或范围(倍率值)
-     */
+    * @var Single 攻击距离或范围(倍率值)  
+    */
     public $aim_para;
 
     /**
-     * @var Single 冷却时间(秒)
-     */
+    * @var Single 冷却时间(秒)  
+    */
     public $coolTime;
 
     /**
-     * @var Int32 buffid: 灼烧/流血、减速或麻痹等
-     */
+    * @var Int32 buffid: 灼烧/流血、减速或麻痹等  
+    */
     public $buffId;
 
     /**
-     * @var String 词条编号,如有多条, 逗号分隔 default(0)
-     */
+    * @var String 词条编号,如有多条, 逗号分隔 default(0) 
+    */
     public $predicates;
 
     /**
-     * @var Int32 立即: 获得金币num
-     */
+    * @var Int32 立即: 获得金币num  
+    */
     public $immediate_gold;
 
     /**
-     * @var Single 立即: 获得生命%
-     */
+    * @var Single 立即: 获得生命%  
+    */
     public $immediate_hp;
+
 }
+

+ 1 - 6
Gameserver/App/model/Const/sm_task_step.php

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-18 17:20:20
+ // 日期: 2023-09-19 16:41:34
 ////////////////////
 
 
@@ -73,11 +73,6 @@ class sm_task_step
     */
     public $num;
 
-    /**
-    * @var Int32 完成该任务加X点累计值 default(0) 
-    */
-    public $accumulateNum;
-
     /**
     * @var String [神宠] 奖励串 (言灵单条任务不计奖励, 放到任务卡上. 任务完成放到)  
     */

+ 68 - 0
Gameserver/App/model/Const/sm_taskcard.php

@@ -0,0 +1,68 @@
+<?php
+////////////////////
+ // 由CodeGenerator创建。
+ // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
+ // author: gwang 
+ // 日期: 2023-09-19 16:41:00
+////////////////////
+
+
+/**
+ * Static Model taskcard 任务卡
+ */
+class sm_taskcard
+{
+
+    /**
+    * @var Int32 用途未知!!请到数据库中添加字段注释。  
+    */
+    public $id;
+
+    /**
+    * @var Int32 查询用的ID  
+    */
+    public $typeId;
+
+    /**
+    * @var String 任务名称 default(0) 
+    */
+    public $taskName;
+
+    /**
+    * @var Int32 类型:1:日程 default(0) 
+    */
+    public $type;
+
+    /**
+    * @var String 任务描述 default(0) 
+    */
+    public $taskDesc;
+
+    /**
+    * @var String 前往  
+    */
+    public $goto_module;
+
+    /**
+    * @var String 常规任务卡, 言灵任务卡,
+    *    
+    */
+    public $cardType;
+
+    /**
+    * @var String 任务步骤id default(0) 
+    */
+    public $tasksteps;
+
+    /**
+    * @var String 完成后获得的新任务卡id  
+    */
+    public $newTaskCard;
+
+    /**
+    * @var Int32 任务完成累计加的值 default(0) 
+    */
+    public $score;
+
+}
+

+ 95 - 0
Gameserver/App/model/User/Ins_TaskCard.php

@@ -0,0 +1,95 @@
+<?php
+
+namespace loyalsoft;
+
+/**
+ * Description of TaskCardVo
+ * 任务卡
+ * @author gwang
+ */
+class Ins_TaskCard extends Object_ext {
+
+    /**
+     * @var type 这个物品在玩家身上唯一的id
+     */
+    public $uid = 0;
+
+    /**
+     * @var type 当前已完成步骤数量
+     */
+    public $count = 0;
+
+    /**
+     * @var type 查询用的id
+     */
+    public $typeId = 0;
+
+    /**
+     * @var int 任务状态未完成/已完成:0/1
+     */
+    public $state = 0;
+
+    /**
+     * @var array[]当前任务步骤数据 
+     */
+    public $curSteps;
+
+    /**
+     * 
+     * @return type
+     */
+    public function mo() {
+        $mo = GameConfig::taskcard_getItem($this->typeId);
+        my_Assert(null != $mo, ErrCode::err_const_no);
+        return $mo;
+    }
+
+    public function __construct($args = 0) {
+        if (isInt($args)) {
+            $this->typeId = $args;
+            $arr = array();
+            $cfg = GameConfig::item_taskcard_getItem($this->typeId);
+            my_Assert(null != $cfg, ErrCode::err_const_no);
+            foreach (explode(',', $cfg->tasksteps) as $taskStepTypeId) {
+                $arr [] = new Ins_TaskStep($taskStepTypeId);
+            }
+            $this->curSteps = $arr;
+        } else {
+            parent::__construct($args);
+        }
+    }
+
+    /**
+     * @return boolean 分析任务卡是否已经完成所有步骤
+     */
+    public function IsFinish() {
+        if ($this->state >= Enum_TaskCardStateType::finish) {                   # 已经完成
+            return true;
+        }
+        $isFinish = true;
+        foreach ($this->curSteps as &$tsp) {                                    # 初期里面只有一个任务
+            $tsp = new Ins_TaskStep($tsp);
+            if (!$tsp->isFinish()) {
+                $isFinish = false;
+                break;
+            }
+        }
+        return $isFinish;
+    }
+
+    public function AddStep($stpid) {
+        $exists = false;
+        foreach ($this->curSteps as $stp) {
+//            $stp = new Ins_TaskStep($stp);
+            if ($stp->typeId == $stpid) {
+                $exists = true;
+            }
+        }
+        if (!$exists) {
+            $newstp = new Ins_TaskStep($stpid);
+            $this->curSteps[] = $newstp;
+//            $newstp->doStartAct();
+        }
+    }
+
+}

+ 1 - 7
Gameserver/App/model/User/Ins_TaskStep.php

@@ -23,13 +23,7 @@ class Ins_TaskStep extends Object_ext {
     /**
      * @var int start/finish act已执行(0:startAct未执行,1:StartAct已执行且finishAct未执行,2:finishAct已执行)
      */
-    public $actState = 0;
-    
-    /**
-     * 进行中 完成未领奖 已经领取奖励
-     * @var type
-     */
-    public $state = 0;
+    public $actState = 0;    
 
     /**
      * @return \sm_task_step mo 获取对应的模板数据

+ 37 - 48
Gameserver/App/process/TaskProc.php

@@ -32,14 +32,14 @@ class TaskProc {
     
     static function ResetTask() {
         self::ResetTask_Daily();
-        self::ResetTask_Week();
+        //self::ResetTask_Week();
     }
     
     /**
      * 每日任务重置
      */
     static function ResetTask_Daily() {
-        $dic = GameConfig::task_step();
+        $dic = GameConfig::taskcard();
         
         $retDic = new \stdClass();
         $taskcards = ctx()->task->taskcards;
@@ -66,7 +66,7 @@ class TaskProc {
         $index = ctx()->task->taskIndex;
         foreach ($retDic as $id => $mo) {
             $index += 1;
-            $task = new Ins_TaskStep($id);
+            $task = new Ins_TaskCard($id);
             $taskcards->$index = $task;          
         }
         ctx()->task->taskIndex = $index;
@@ -79,7 +79,7 @@ class TaskProc {
      * 每周任务重置
      */
     static function ResetTask_Week() {
-        $dic = GameConfig::task_step();
+        $dic = GameConfig::taskcard();
         
         $retDic = new \stdClass();
         $taskcards = ctx()->task->taskcards;
@@ -106,7 +106,7 @@ class TaskProc {
         $index = ctx()->task->taskIndex;
         foreach ($retDic as $id => $mo) {
             $index += 1;
-            $task = new Ins_TaskStep($id);
+            $task = new Ins_TaskCard($id);
             $taskcards->$index = $task;          
         }
         ctx()->task->taskIndex = $index;
@@ -148,48 +148,8 @@ class TaskProc {
         self::CheckTaskCardConditions($taskEventArg);                           # 检查日常任务
     }
        
-       
-    
+           
     static function CheckTaskCardConditions($taskParam) {
-        $bUpdate = false;
-        $tasks = ctx()->task->taskcards;
-        foreach ($tasks as $tid => &$task) {
-            $tsp = new Ins_TaskStep($task);
-            if ($tsp->state != Enum_TaskCardStateType::ing) {
-                continue;
-            }
-            
-            if ($tsp->check_new($taskParam)) {
-                $bUpdate = true;
-                $tsp->propel($taskParam);
-                NormalEventProc::OnTaskCardStep_Process($task->uid, $tsp->typeId); # 任务进度更新
-                if ($tsp->isFinish()) {
-                    NormalEventProc::OnTaskCardStep_Complete($task->uid, $tsp->typeId); # 广播任务步骤完成事件
-//                        $tsp->doFinishAct();
-                }    
-            }
-            
-            if ($tsp->IsFinish()) {                                             # 检查是否任务卡的所有步骤都已完成
-                $tsp->state = Enum_TaskCardStateType::finish;
-                NormalEventProc::OnTaskCard_Finish($tsp->uid, null);           # 广播卡完成事件
-            }
-            
-            
-        }
-        
-        if ($bUpdate) {                                                         # 带回数据到客户端
-            ctx()->task->taskcards = $tasks;
-            UserProc::updateUserInfo();                                         # 更新玩家数据
-        }
-        
-    }
-
-
-    /**
-     * 检查任务卡条件是否达成
-     * @param Ins_TaskEventArgs $taskParam Description
-     */
-    static function CheckTaskCardConditions_old($taskParam) {
         $bUpdate = false;
         $tasks = ctx()->task->taskcards;
         foreach ($tasks as $tid => &$task) {
@@ -209,6 +169,7 @@ class TaskProc {
                     }
                 }
             }
+            
             if ($task->IsFinish()) {                                            # 检查后添加后续任务
                 $arr = array();
                 foreach ($task->curSteps as &$tsp) {                            # 初期里面只有一个任务
@@ -224,7 +185,7 @@ class TaskProc {
                 }
 
                 if (count($arr) != 0) {
-                    self::autoRecoverStateMissions();
+                    self::autoRecoverStateMissions($taskParam);
                 }
             }
             if ($task->IsFinish()) {                                            # 检查是否任务卡的所有步骤都已完成
@@ -232,11 +193,39 @@ class TaskProc {
                 NormalEventProc::OnTaskCard_Finish($task->uid, null);           # 广播卡完成事件
             }
         }
+        
         if ($bUpdate) {                                                         # 带回数据到客户端
-            ctx()->store->taskcards = $tasks;
+            ctx()->task->taskcards = $tasks;
             UserProc::updateUserInfo();                                         # 更新玩家数据
         }
 
         return $bUpdate;
     }
+    
+    /**
+     * 自动修复状态型任务
+     */
+    static function autoRecoverStateMissions() {
+        $tasks = ctx()->task->taskcards;
+        foreach ($tasks as $tid => &$task) {
+            $task = new Ins_TaskCard($task);
+
+            if ($task->state == Enum_TaskCardStateType::ing //                  # 进行中的或者已完成的
+                    || $task->state == Enum_TaskCardStateType::finish) {
+                foreach ($task->curSteps as &$tsp) {                            # 初期里面只有一个任务
+                    $tsp = new Ins_TaskStep($tsp);
+                    $tsp->autoCalcStatusCur();                   
+                }
+                if ($task->state == Enum_TaskCardStateType::finish) {           # 检查是否任务卡的所有步骤都已完成
+                    if (!$task->IsFinish()) {
+                        $task->state = Enum_TaskCardStateType::ing;             # 状态回退
+                    }
+                }
+            }
+        }
+//        Clog::info("更新状态统计类的任务卡!");
+        ctx()->task->taskcards = $tasks;
+    }
+            
 }
+

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů