|
@@ -99,10 +99,30 @@ class StoreProc {
|
|
|
return PetProc::ResetDispatchPet();
|
|
|
case CmdCode::store_pet_removeFightPosition: # 6439
|
|
|
return PetProc::RemoveFightPosition();
|
|
|
+
|
|
|
+ case CmdCode::store_clearNewGemTip: # 6440 清理背包里新宝石标识
|
|
|
+ return self::clearNewGemTip();
|
|
|
+
|
|
|
default:
|
|
|
Err(ErrCode::cmd_err);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 6440 清理背包里新宝石标识
|
|
|
+ */
|
|
|
+ public static function clearNewGemTip(){
|
|
|
+ list($uid) = req()->paras;
|
|
|
+
|
|
|
+ if(in_array($uid, ctx()->store()->newGem_Store)){
|
|
|
+ StlUtil::arrayRemove( ctx()->store()->newGem_Store, $uid);
|
|
|
+ }
|
|
|
+
|
|
|
+ UserProc::updateUserInfo();
|
|
|
+ return Resp::ok(array(
|
|
|
+ 'store' => ctx()->store,
|
|
|
+ ));
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 6420 降品
|
|
@@ -1280,7 +1300,20 @@ class StoreProc {
|
|
|
for ($i = 0; $i < $num; $i++) {
|
|
|
$gem = self::initGem($itemId);
|
|
|
if ($src != 1) {
|
|
|
- self::$reward_Gem[] = $gem->uid;
|
|
|
+ self::$reward_Gem[] = $gem->uid;
|
|
|
+ $gemStore = ctx()->store()->gemStore;
|
|
|
+ $predicateId = $gem->predicateId;
|
|
|
+ $isExistSameGem = false;
|
|
|
+ foreach ($gemStore as $uid => $gemValue) {
|
|
|
+ if($gemValue->predicateId == $predicateId){
|
|
|
+ $isExistSameGem = true;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!$isExistSameGem){
|
|
|
+ ctx()->store()->newGem_Store[] = $gem->uid;
|
|
|
+ }
|
|
|
}
|
|
|
self::PutGemInStore($gem);
|
|
|
if ($src == Enum_StoreSourceType::ShopBox) {
|