|
@@ -976,8 +976,13 @@ class HeroProc {
|
|
|
if (!StlUtil::dictHasProperty($store->yanling, $yanlingUid)) {
|
|
|
return Resp::err(ErrCode::hero_yanling_notfound);
|
|
|
}
|
|
|
+
|
|
|
+ if(in_array($yanlingUid, $uidList)){
|
|
|
+ return Resp::err(ErrCode::hero_yanling_repeat);
|
|
|
+ }
|
|
|
+
|
|
|
$tag = true;
|
|
|
- foreach ($uidList as $costUid) {
|
|
|
+ foreach ($uidList as $costUid) {
|
|
|
if (StlUtil::dictHasProperty($store->yanling, $costUid)) {//校验是否是同类型
|
|
|
$confDic = GameConfig::item_yanling_getItem($store->yanling->$costUid->typeId);
|
|
|
my_Assert(null != $confDic, ErrCode::hero_const_no_err);
|