|  |  | 
 |  |  |         if mwID in IpyGameDataPY.GetFuncEvalCfg('UnblockTreasure'):
 | 
 |  |  |             PlayerControl.NotifyCode(curPlayer, 'UnblockTreasure', [curPlayer.GetName(), mwID])
 | 
 |  |  |         else:
 | 
 |  |  |             PlayerControl.WorldNotify(0, 'UnblockTreasure', [curPlayer.GetName(), mwID])
 | 
 |  |  |             sysMark = IpyGameDataPY.GetFuncEvalCfg('UnblockTreasure', 2, {}).get(mwID, 'UnblockTreasure')
 | 
 |  |  |             PlayerControl.WorldNotify(0, sysMark, [curPlayer.GetName(), mwID])
 | 
 |  |  |         
 | 
 |  |  |         #任务
 | 
 |  |  |         EventShell.EventRespons_OnActiveMagicWeapon(curPlayer, mwID)
 | 
 |  |  | 
 |  |  |     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_MagicWeaponUpExp % mwID, curUpExp+addExp)
 | 
 |  |  |     Sycn_MagicWeaponLV(curPlayer, mwID)
 | 
 |  |  |     # 每日活动
 | 
 |  |  |     PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_MagicWeapon)
 | 
 |  |  |     ipyData = GetWMIpyData(mwID)
 | 
 |  |  |     mwType = ipyData.GetTreasureType() if ipyData else 0
 | 
 |  |  |     if mwType == 1:
 | 
 |  |  |         PlayerActivity.AddDailyActionFinishCnt(curPlayer, ShareDefine.DailyActionID_MagicWeapon)
 | 
 |  |  |     return
 | 
 |  |  | 
 | 
 |  |  | def Sycn_MagicWeaponLV(curPlayer, mwID= -1):
 |