|
@@ -36,6 +36,29 @@ class FightProc {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * EvolveUnlock
|
|
|
|
+ * @return type
|
|
|
|
+ */
|
|
|
|
+ public static function EvolveUnlock() {
|
|
|
|
+ list($zhangjieId, $gateId) = req()->paras;
|
|
|
|
+
|
|
|
|
+ $mo = GameConfig::gate_challenge_getItem($zhangjieId);
|
|
|
|
+ my_Assert($mo!=null, ErrCode::err_const_no);
|
|
|
|
+
|
|
|
|
+// $list = explode(',', $mo->gates);
|
|
|
|
+// my_Assert(in_array($gateId,$list), ErrCode::err_const_no);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ UserProc::updateUserInfo();
|
|
|
|
+ $ret = array(
|
|
|
|
+ 'store' => ctx()->store,
|
|
|
|
+ 'gates' => ctx()->gates,
|
|
|
|
+ );
|
|
|
|
+ return Resp::ok($ret);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 挑战奖励领取
|
|
* 挑战奖励领取
|
|
* @return type
|
|
* @return type
|