Jelajahi Sumber

feat(ResponsePromotionInfo): 添加今日收益和总收益字段

- 在 ResponsePromotionInfo 消息中添加 today_reward 和 total_reward 字段
- 更新对应的 PHP 类文件,增加相关 getter 和 setter 方法
- 更新路由配置文件生成时间
notfff 6 bulan lalu
induk
melakukan
606d5a50af

+ 1 - 1
config/proto_route.php

@@ -105,7 +105,7 @@ return array (
       7 => 'query_data',
     ),
   ),
-  'generated_at' => '+08:00 2025-06-14 22:08:32',
+  'generated_at' => '+08:00 2025-06-16 12:41:50',
   'conventions' => 
   array (
     'handler_namespace' => 'App\\Module\\AppGame\\Handler',

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

@@ -16,7 +16,7 @@ class Game
         }
         $pool->internalAddGeneratedFile(
             '
-¿¾
+Ÿ¿
 proto/game.proto	uraus.kku"Ó>
 Request
 request_unid (	;
@@ -273,7 +273,7 @@ select_ids (.
 times (R
 RequestPromotionList+
 page (2.uraus.kku.Common.RequestPage
-level ("¨O
+level ("ˆP
 Response
 run_unid (	
 run_ms (-
@@ -563,7 +563,7 @@ last_times (
 times (,
 status (2.uraus.kku.Common.MEX_STATUS
 num (2
-	direction (2.uraus.kku.Common.MEX_DIRECTIONÁ
+	direction (2.uraus.kku.Common.MEX_DIRECTION¡
 ResponsePromotionInfo
 total_count (
 direct_count (
@@ -571,7 +571,9 @@ last_times (
 day_recent_count (
 day_direct_count (
 active_count (
-direct_active_count (z
+direct_active_count (.
+today_reward (2.uraus.kku.Common.Reward.
+total_reward	 (2.uraus.kku.Common.Rewardz
 ResponsePromotionList,
 page (2.uraus.kku.Common.ResponsePage3
 list (2%.uraus.kku.Response.PromotionListItem€

+ 88 - 0
protophp/Uraus/Kku/Response/ResponsePromotionInfo.php

@@ -58,6 +58,18 @@ class ResponsePromotionInfo extends \Google\Protobuf\Internal\Message
      * Generated from protobuf field <code>int64 direct_active_count = 7;</code>
      */
     protected $direct_active_count = 0;
+    /**
+     * 今天的收益 (推广收益和种植收益)
+     *
+     * Generated from protobuf field <code>.uraus.kku.Common.Reward today_reward = 8;</code>
+     */
+    protected $today_reward = null;
+    /**
+     * 总收益(推广收益和种植收益)
+     *
+     * Generated from protobuf field <code>.uraus.kku.Common.Reward total_reward = 9;</code>
+     */
+    protected $total_reward = null;
 
     /**
      * Constructor.
@@ -79,6 +91,10 @@ class ResponsePromotionInfo extends \Google\Protobuf\Internal\Message
      *           团队活跃人数
      *     @type int|string $direct_active_count
      *           直推活跃人数
+     *     @type \Uraus\Kku\Common\Reward $today_reward
+     *           今天的收益 (推广收益和种植收益)
+     *     @type \Uraus\Kku\Common\Reward $total_reward
+     *           总收益(推广收益和种植收益)
      * }
      */
     public function __construct($data = NULL) {
@@ -268,6 +284,78 @@ class ResponsePromotionInfo extends \Google\Protobuf\Internal\Message
         return $this;
     }
 
+    /**
+     * 今天的收益 (推广收益和种植收益)
+     *
+     * Generated from protobuf field <code>.uraus.kku.Common.Reward today_reward = 8;</code>
+     * @return \Uraus\Kku\Common\Reward
+     */
+    public function getTodayReward()
+    {
+        return isset($this->today_reward) ? $this->today_reward : null;
+    }
+
+    public function hasTodayReward()
+    {
+        return isset($this->today_reward);
+    }
+
+    public function clearTodayReward()
+    {
+        unset($this->today_reward);
+    }
+
+    /**
+     * 今天的收益 (推广收益和种植收益)
+     *
+     * Generated from protobuf field <code>.uraus.kku.Common.Reward today_reward = 8;</code>
+     * @param \Uraus\Kku\Common\Reward $var
+     * @return $this
+     */
+    public function setTodayReward($var)
+    {
+        GPBUtil::checkMessage($var, \Uraus\Kku\Common\Reward::class);
+        $this->today_reward = $var;
+
+        return $this;
+    }
+
+    /**
+     * 总收益(推广收益和种植收益)
+     *
+     * Generated from protobuf field <code>.uraus.kku.Common.Reward total_reward = 9;</code>
+     * @return \Uraus\Kku\Common\Reward
+     */
+    public function getTotalReward()
+    {
+        return isset($this->total_reward) ? $this->total_reward : null;
+    }
+
+    public function hasTotalReward()
+    {
+        return isset($this->total_reward);
+    }
+
+    public function clearTotalReward()
+    {
+        unset($this->total_reward);
+    }
+
+    /**
+     * 总收益(推广收益和种植收益)
+     *
+     * Generated from protobuf field <code>.uraus.kku.Common.Reward total_reward = 9;</code>
+     * @param \Uraus\Kku\Common\Reward $var
+     * @return $this
+     */
+    public function setTotalReward($var)
+    {
+        GPBUtil::checkMessage($var, \Uraus\Kku\Common\Reward::class);
+        $this->total_reward = $var;
+
+        return $this;
+    }
+
 }
 
 // Adding a class alias for backwards compatibility with the previous class name.