| | |
| | | for (int i = 0; i < netPack.ShopIDList.Length; i++)
|
| | | {
|
| | | var config = StoreConfig.Get((int)netPack.ShopIDList[i]);
|
| | | if (config == null)
|
| | | {
|
| | | Debug.LogError("前后端商店数据不一致");
|
| | | continue;
|
| | | }
|
| | | //UnlockType 2 由服务端通知
|
| | | StoreData storeData = new StoreData();
|
| | | storeData.shopId = config.ID;
|
| | |
| | |
|
| | | return 0;
|
| | | }
|
| | |
|
| | | public bool CheckPopBuyWin(int shopID)
|
| | | {
|
| | | int state = GetShopIDState(shopID);
|
| | | if (state == 1 || state == 3)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip(StringUtility.Contact("StoreTip", state));
|
| | | return false;
|
| | | }
|
| | | return true;
|
| | | }
|
| | | }
|
| | |
|
| | | public enum StoreFunc
|