|
@@ -48,6 +48,12 @@ class Info_College extends Object_ext{
|
|
|
*/
|
|
|
public $collegeRewardList = array();
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @var type
|
|
|
+ */
|
|
|
+ public $maskCollege = 0;
|
|
|
+
|
|
|
/**
|
|
|
* 构造函数
|
|
|
* @param type $args
|
|
@@ -108,9 +114,16 @@ class Info_College extends Object_ext{
|
|
|
$this->collegeRewardList[] = $this->collegeId;
|
|
|
$this->collegeId += 1;
|
|
|
$newCollegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
- $cList = explode(',', $newCollegeDic->cList);
|
|
|
- $this->courseId = $cList[0];
|
|
|
- $this->initCompMissCardDic();
|
|
|
+ if($newCollegeDic == null){
|
|
|
+ $this->maskCollege = Enum_College::finish;
|
|
|
+ $this->collegeId -= 1;
|
|
|
+ } elseif ($newCollegeDic != null && $newCollegeDic->cList == null) {
|
|
|
+ $this->maskCollege = Enum_College::update;
|
|
|
+ } else {
|
|
|
+ $cList = explode(',', $newCollegeDic->cList);
|
|
|
+ $this->courseId = $cList[0];
|
|
|
+ $this->initCompMissCardDic();
|
|
|
+ }
|
|
|
// }
|
|
|
}
|
|
|
|
|
@@ -137,5 +150,17 @@ class Info_College extends Object_ext{
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
+ public function checkCollege() {
|
|
|
+ if($this->maskCollege == Enum_College::update){
|
|
|
+ $dic = GameConfig::college_getItem($this->collegeId);
|
|
|
+ if($dic != null && $dic->cList != null){
|
|
|
+ $this->maskCollege = 0;
|
|
|
+ $cList = explode(',', $dic->cList);
|
|
|
+ $this->courseId = $cList[0];
|
|
|
+ $this->initCompMissCardDic();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|