Prechádzať zdrojové kódy

商城错误码更新

cyzhao 11 mesiacov pred
rodič
commit
fdf3f9d7e4

+ 30 - 1
Gameserver/App/base/ErrCode.php

@@ -432,16 +432,45 @@ class ErrCode {
 //
 //   // <editor-fold defaultstate="collapsed" desc="    shop 3400    ">
 
+    /**
+     * 商品不能重复购买
+     */
     const user_shop_NotRepeatBuy = 3401;
+    
+    /**
+     * 购买次数已达最大值
+     */
     const user_shop_LimitNum = 3402;
 
     /**
      * 活动过期
      */
     const user_shop_activeExpire = 3403;
-    const user_shop_FreeNumLimit = 3404;
+    
+    /**
+     *  免费次数已达上限
+     */
+    const user_shop_FreeNumLimit = 3404;     
+    
+    /**
+     * 购买次数已达上限
+     */
     const user_shop_buyTiliNumLimit = 3405;
+    
+    /**
+     * 广告购买体力次数已达上限
+     */
     const user_shop_GuanggaoGetTiliNumLimit = 3406;
+    
+    /**
+     * 广告获得次数已达上限
+     */
+    const user_shop_GuanggaoFreeNumLimit = 3407;
+    
+    /**
+     * 倒计时时间限制暂时无法购买
+     */
+    const user_shop_DownTsLimit = 3408;
 // </editor-fold>
 //
 //   // <editor-fold defaultstate="collapsed" desc="    active 3500    ">

+ 3 - 3
Gameserver/App/process/ShopProc.php

@@ -126,9 +126,9 @@ class ShopProc {
                     }
 
                     if ($getNum >= $mo->freeNum) {
-                        my_Assert($user->privateState->dailyShop_GuangGaoNum < $mo->num, ErrCode::user_shop_FreeNumLimit);
+                        my_Assert($user->privateState->dailyShop_GuangGaoNum < $mo->num, ErrCode::user_shop_GuanggaoFreeNumLimit);
                         if ($user->privateState->dailyShop_GuangGaoNum >= 1) {
-                            my_Assert(now() - $user->privateState->dailyShop_GuangGaoTs >= $mo->downTs, ErrCode::user_shop_FreeNumLimit);
+                            my_Assert(now() - $user->privateState->dailyShop_GuangGaoTs >= $mo->downTs, ErrCode::user_shop_DownTsLimit);
                         }
                         $user->privateState->dailyShop_GuangGaoNum += 1;
                         $user->privateState->dailyShop_GuangGaoTs = now();
@@ -414,7 +414,7 @@ class ShopProc {
 
                         //$user->privateState->goldShopReceived[] = $typeId;
                     } else {
-                        my_Assert(now() - $ts >= $mo->downTs, ErrCode::user_shop_FreeNumLimit);
+                        my_Assert(now() - $ts >= $mo->downTs, ErrCode::user_shop_DownTsLimit);
                         switch ($typeId) {
                             case 1:
                                 $user->privateState->goldShop_CoolDownTs_1 = now();

+ 1 - 12
Gameserver/App/process/TaskProc.php

@@ -313,18 +313,7 @@ class TaskProc {
         }
         ctx()->task->activeTaskLength = $length;
     }
-
-    static function ddddd() {
-        $length = ctx()->task->activeTaskLength;
-        $length += 1;
-        
-        $ins_TaskStep_Active = new Ins_TaskStep_Active(1105);
-        $ins_TaskStep_Active->uid = $length;
-        $ins_TaskStep_Active->state = Enum_TaskCardStateType::ing;
-        ctx()->task->activeTaskInfo->$length = $ins_TaskStep_Active;        
-        ctx()->task->activeTaskLength = $length;
-    }
-
+  
     /**
      * 日常
      */