|
@@ -246,8 +246,9 @@ class StoreProc {
|
|
|
$posId = 0;
|
|
|
if(StlUtil::dictHasProperty($user->store->gemStore, $gemUidList[0])){
|
|
|
$ins_gem = $user->store->gemStore->$firstGemUId;
|
|
|
- $qual = $ins_gem->mo()->qual;
|
|
|
- $posId = $ins_gem->mo()->position;
|
|
|
+ $mo = GameConfig::gem_getItem($ins_gem->typeId);
|
|
|
+ $qual = $mo->qual;
|
|
|
+ $posId = $mo->position;
|
|
|
}
|
|
|
//查找要合成的宝石配置信息
|
|
|
$gemConf = self::GemComposeSynthesis($qual, $posId);
|
|
@@ -257,7 +258,8 @@ class StoreProc {
|
|
|
$composeNum = $synthesisList[2];
|
|
|
|
|
|
foreach ($composeArr as $val) {
|
|
|
- if($val->mo()->qual == $composeQual && $val->mo()->position == $composePosition){
|
|
|
+ $mo = GameConfig::gem_getItem($val->typeId);
|
|
|
+ if($mo->qual == $composeQual && $mo->position == $composePosition){
|
|
|
$gemUidList[] = $val->uid;
|
|
|
}
|
|
|
}
|
|
@@ -315,7 +317,7 @@ class StoreProc {
|
|
|
* @return bool
|
|
|
*/
|
|
|
private static function GemIsCanCompose($uid) {
|
|
|
- $Ins_gemItem = ctx()->store->gemStore->$uid;
|
|
|
+ $Ins_gemItem = new Ins_Equip(ctx()->store->gemStore->$uid);
|
|
|
|
|
|
$equipGemDic = ctx()->store->gemEquip;
|
|
|
$equipPag = ctx()->store->equipPag;
|