cyzhao 1 жил өмнө
parent
commit
c59753695c

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

@@ -412,7 +412,16 @@ class ErrCode {
      */
     const user_store_GemCanotCompose = 3306;
     const user_store_NotExistGem = 3307;
-    const user_store_GemNotXilian = 3308;
+    
+    /**
+     * 洗练石不足
+     */
+    const user_store_XilianStoneNoEnough = 3308;
+    
+    /**
+     * 没有找到对应词条信息
+     */
+    const user_store_NoFindPredicate = 3309;
 // </editor-fold>
 //
 //   // <editor-fold defaultstate="collapsed" desc="    shop 3400    ">

+ 2 - 2
Gameserver/App/process/StoreProc.php

@@ -75,7 +75,7 @@ class StoreProc {
             }
         }
         
-        my_Assert(ctx()->baseInfo->xilianStone >= $needStone, ErrCode::user_store_GemNotXilian);
+        my_Assert(ctx()->baseInfo->xilianStone >= $needStone, ErrCode::user_store_XilianStoneNoEnough);
  
         $dic = GameConfig::predicate();
         $pList = array();
@@ -87,7 +87,7 @@ class StoreProc {
                 }
             }                    
         }
-        my_Assert(count($pList) > 0, ErrCode::user_store_GemNotXilian);
+        my_Assert(count($pList) > 0, ErrCode::user_store_NoFindPredicate);
         $rand = random_int(0, count($pList)-1);
         $pId = $pList[$rand]; 
         ctx()->store->gemStore->$uid->predicateId = $pId;