Browse Source

refactor(protobuf): 更新 DataLand 消息结构

- 将 seed_next_times 字段重命名为 stage_start_times,表示当前阶段开始时间
- 新增 stage_next_times 字段,表示当前阶段结束时间- 更新相关方法名称以适应新的字段命名
notfff 7 months ago
parent
commit
e24eb19056
3 changed files with 54 additions and 19 deletions
  1. 1 1
      config/proto_route.php
  2. 6 5
      protophp/GPBMetadata/Proto/Game.php
  3. 47 13
      protophp/Uraus/Kku/Common/DataLand.php

+ 1 - 1
config/proto_route.php

@@ -89,7 +89,7 @@ return array (
       7 => 'query_data',
     ),
   ),
-  'generated_at' => '+08:00 2025-05-22 16:42:40',
+  'generated_at' => '+08:00 2025-05-22 17:40:12',
   'conventions' => 
   array (
     'handler_namespace' => 'App\\Module\\AppGame\\Handler',

+ 6 - 5
protophp/GPBMetadata/Proto/Game.php

@@ -16,7 +16,7 @@ class Game
         }
         $pool->internalAddGeneratedFile(
             '
-è™
+„š
 proto/game.proto	uraus.kku"÷2
 Request;
 public_tokend (2%.uraus.kku.Request.RequestPublicToken;
@@ -471,7 +471,7 @@ to_user_id (
 APPLYING	
 AGREE
 
-REFUSE"ß)
+REFUSE"û)
 Common)
 KeyValue
 kname (	
@@ -546,7 +546,7 @@ pet_simple (2.uraus.kku.Common.DataPetSimple-
 item_id (
 instance_id (
 quantity (
-expire_time (ú
+expire_time (–
 DataLand
 
 id (
@@ -562,8 +562,9 @@ pet_simple (2.uraus.kku.Common.DataPetSimple-
 seed_id (
 fruit_id  (
 plant_id! (2
-seed_status" (2.uraus.kku.Common.SEED_STATUS
-seed_next_times# (8
+seed_status" (2.uraus.kku.Common.SEED_STATUS
+stage_start_times# (
+stage_next_times$ (8
 DataGod
 
 id (

+ 47 - 13
protophp/Uraus/Kku/Common/DataLand.php

@@ -101,11 +101,17 @@ class DataLand extends \Google\Protobuf\Internal\Message
      */
     protected $seed_status = 0;
     /**
-     * 下一阶段时间
+     * 当前阶段开始时间
      *
-     * Generated from protobuf field <code>int64 seed_next_times = 35;</code>
+     * Generated from protobuf field <code>int64 stage_start_times = 35;</code>
      */
-    protected $seed_next_times = 0;
+    protected $stage_start_times = 0;
+    /**
+     * 当前阶段结束时间
+     *
+     * Generated from protobuf field <code>int64 stage_next_times = 36;</code>
+     */
+    protected $stage_next_times = 0;
 
     /**
      * Constructor.
@@ -142,8 +148,10 @@ class DataLand extends \Google\Protobuf\Internal\Message
      *           植株ID
      *     @type int $seed_status
      *           种子状态
-     *     @type int|string $seed_next_times
-     *           下一阶段时间
+     *     @type int|string $stage_start_times
+     *           当前阶段开始时间
+     *     @type int|string $stage_next_times
+     *           当前阶段结束时间
      * }
      */
     public function __construct($data = NULL) {
@@ -518,27 +526,53 @@ class DataLand extends \Google\Protobuf\Internal\Message
     }
 
     /**
-     * 下一阶段时间
+     * 当前阶段开始时间
+     *
+     * Generated from protobuf field <code>int64 stage_start_times = 35;</code>
+     * @return int|string
+     */
+    public function getStageStartTimes()
+    {
+        return $this->stage_start_times;
+    }
+
+    /**
+     * 当前阶段开始时间
+     *
+     * Generated from protobuf field <code>int64 stage_start_times = 35;</code>
+     * @param int|string $var
+     * @return $this
+     */
+    public function setStageStartTimes($var)
+    {
+        GPBUtil::checkInt64($var);
+        $this->stage_start_times = $var;
+
+        return $this;
+    }
+
+    /**
+     * 当前阶段结束时间
      *
-     * Generated from protobuf field <code>int64 seed_next_times = 35;</code>
+     * Generated from protobuf field <code>int64 stage_next_times = 36;</code>
      * @return int|string
      */
-    public function getSeedNextTimes()
+    public function getStageNextTimes()
     {
-        return $this->seed_next_times;
+        return $this->stage_next_times;
     }
 
     /**
-     * 下一阶段时间
+     * 当前阶段结束时间
      *
-     * Generated from protobuf field <code>int64 seed_next_times = 35;</code>
+     * Generated from protobuf field <code>int64 stage_next_times = 36;</code>
      * @param int|string $var
      * @return $this
      */
-    public function setSeedNextTimes($var)
+    public function setStageNextTimes($var)
     {
         GPBUtil::checkInt64($var);
-        $this->seed_next_times = $var;
+        $this->stage_next_times = $var;
 
         return $this;
     }