|
@@ -175,7 +175,7 @@ class StoreProc {
|
|
|
*/
|
|
|
public static function Equip_Compose() {
|
|
|
list($uid, $equipUids_cost, $composeMaterial_typeIds) = req()->paras;
|
|
|
-
|
|
|
+ $store = ctx()->store(true);
|
|
|
$equipDic = ctx()->store->equip;
|
|
|
my_Assert(StlUtil::dictHasProperty($equipDic, $uid), ErrCode::user_store_NotExistEquip);
|
|
|
$ins_equip = new Ins_Equip($equipDic->$uid);
|
|
@@ -229,6 +229,11 @@ class StoreProc {
|
|
|
$costIns_Equip = new Ins_Equip($equipDic->$eqUid);
|
|
|
self::equipLevelUp_Material_Recovery($costIns_Equip->mo()->rarity, $costIns_Equip->qual, $costIns_Equip->mo()->position, $costIns_Equip->level);
|
|
|
StlUtil::dictRemove(ctx()->store(true)->equip, $eqUid);
|
|
|
+ for ($i = 1; $i <= 6; $i++) { # 清理装备信息
|
|
|
+ if ($store->equipLocation->$i == $eqUid) {
|
|
|
+ StlUtil::dictRemove($store->equipLocation, $i);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|