cyzhao 1 yıl önce
ebeveyn
işleme
3326ea3501

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-07 14:29:41
+ // 日期: 2023-09-07 16:58:01
 ////////////////////
 
 /**

+ 8 - 8
Gameserver/App/model/Const/globalsettings.php

@@ -49,7 +49,7 @@ class globalsettings
     public $OpenMapSmallBoxFreq;
 
     /**
-    * @var string 默认背包最大数量  
+    * @var int 默认背包最大数量  
     */
     public $Item_Packet_MaxNum;
 
@@ -58,13 +58,18 @@ class globalsettings
     */
     public $tili_RecoverrMax;
 
+    /**
+    * @var string 充值购买任一商品,即可获得如下奖励,仅此一次哦~  
+    */
+    public $FirstRechargePrice;
+
     /**
     * @var string 【废弃】当前客户端版本号  
     */
     public $clientVer;
 
     /**
-    * @var int 支付模块是否开放   
+    * @var int 支付模块是否开放  
     */
     public $Game_Pay_Open;
 
@@ -74,7 +79,7 @@ class globalsettings
     public $updatingBeginTs;
 
     /**
-    * @var string 更新结束时间戳  
+    * @var int 更新结束时间戳  
     */
     public $updatingEndTs;
 
@@ -83,10 +88,5 @@ class globalsettings
     */
     public $tili_RecoverTS;
 
-    /*
-    * @var string 恢复一点体力所需时间(秒)  
-    */
-    public $active_Tili_RecoverTS;
-
 }
 

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

@@ -3,7 +3,7 @@
  // 由CodeGenerator创建。
  // Copyright (C) gwang (wanggangzero@qq.com), Loyalsoft@sjz Inc
  // author: gwang 
- // 日期: 2023-09-07 14:33:22
+ // 日期: 2023-09-07 16:34:51
 ////////////////////
 
 

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

@@ -101,6 +101,12 @@ class Info_UserBase extends Object_ext {
      * @var type
      */
     public $animation = 0;
+    
+    /**
+     * 首充奖励是否领取过
+     * @var type
+     */
+    public $fRechargePriceReceived = 0;
 
     public function initialize() {
 //        my_Assert(GameConfig::primordial_data(), "找不到账号初始化数据");         # 防御

+ 7 - 1
Gameserver/App/process/ShopProc.php

@@ -334,7 +334,13 @@ class ShopProc {
             default:
                 break;
         }
-              
+             
+        if(ctx()->baseInfo->charge_amt > 0 && ctx()->baseInfo->fRechargePriceReceived == 0){
+            StoreProc::AddMultiItemInStore(GameConfig::globalsettings()->FirstRechargePrice);
+            ctx()->baseInfo->fRechargePriceReceived = 1;
+        }
+            
+        
         ctx($user);
         UserProc::updateUserInfo();
         return Resp::ok(array(