|
@@ -240,18 +240,34 @@ class StoreProc {
|
|
|
krsort($list);
|
|
|
|
|
|
foreach ($list as $str) {
|
|
|
- $gemUidList = explode(',', $str);
|
|
|
+ $gemUidList = explode(',', $str);
|
|
|
$firstGemUId = $gemUidList[0];
|
|
|
$qual = 0;
|
|
|
$posId = 0;
|
|
|
- if(StlUtil::dictHasProperty($user->store->gemStore, $gemUidList[0])){
|
|
|
+ if(StlUtil::dictHasProperty($user->store->gemStore, $firstGemUId)){
|
|
|
$ins_gem = $user->store->gemStore->$firstGemUId;
|
|
|
$mo = GameConfig::gem_getItem($ins_gem->typeId);
|
|
|
$qual = $mo->qual;
|
|
|
$posId = $mo->position;
|
|
|
}
|
|
|
+ $isCompose = true;
|
|
|
+ //在做一次校验
|
|
|
+ foreach ($gemUidList as $uid) {
|
|
|
+ if(StlUtil::dictHasProperty($user->store->gemStore, $uid)){
|
|
|
+ $ins_gem = $user->store->gemStore->$uid;
|
|
|
+ $mo = GameConfig::gem_getItem($ins_gem->typeId);
|
|
|
+
|
|
|
+ if($mo->qual != $qual || $mo->position != $posId){
|
|
|
+ $isCompose = false;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ my_Assert($isCompose == true, ErrCode::user_store_GemCanotCompose);
|
|
|
+
|
|
|
//查找要合成的宝石配置信息
|
|
|
$gemConf = self::GemComposeSynthesis($qual, $posId);
|
|
|
+ my_Assert($gemConf != null, ErrCode::err_const_no);
|
|
|
$synthesisList = explode('_', $gemConf->synthesis);
|
|
|
$composePosition = $synthesisList[0];
|
|
|
$composeQual = $synthesisList[1];
|