|  |  |  | 
|---|
|  |  |  | GameWorld.DebugLog("GY_Query_GetStoreServerBuyCnt funResult=%s" % funResult) | 
|---|
|  |  |  | curPlayer.SetDict(ChConfig.Def_PlayerKey_StoreQueryState, 0) | 
|---|
|  |  |  | result = eval(funResult) | 
|---|
|  |  |  | if len(result) != 6: | 
|---|
|  |  |  | if len(result) != 7: | 
|---|
|  |  |  | return | 
|---|
|  |  |  | itemIndex, serverLimitCnt, clientBuyCount, totalItemList, mainItemID, limitBuyCnt = result | 
|---|
|  |  |  | FunctionNPCCommon.DoBuyStoreItem(curPlayer, itemIndex, clientBuyCount, totalItemList, mainItemID, limitBuyCnt) | 
|---|
|  |  |  | itemIndex, serverLimitCnt, clientBuyCount, totalItemList, mainItemID, limitBuyCnt, sendMailKey = result | 
|---|
|  |  |  | FunctionNPCCommon.DoBuyStoreItem(curPlayer, itemIndex, clientBuyCount, totalItemList, mainItemID, limitBuyCnt, sendMailKey) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|