|
@@ -1,5 +1,7 @@
|
|
<?php
|
|
<?php
|
|
|
|
+
|
|
namespace loyalsoft;
|
|
namespace loyalsoft;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* To change this template file, choose Tools | Templates
|
|
@@ -13,49 +15,48 @@ namespace loyalsoft;
|
|
*
|
|
*
|
|
* @author cyzhao
|
|
* @author cyzhao
|
|
*/
|
|
*/
|
|
-class Info_College extends Object_ext{
|
|
|
|
|
|
+class Info_College extends Object_ext {
|
|
|
|
+
|
|
/**
|
|
/**
|
|
- * 当前所在的级别
|
|
|
|
|
|
+ * 当前所在的级别
|
|
*/
|
|
*/
|
|
public $collegeId = 1;
|
|
public $collegeId = 1;
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 所处的课程id
|
|
/// 所处的课程id
|
|
/// </summary>
|
|
/// </summary>
|
|
public $courseId = 1001;
|
|
public $courseId = 1001;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 将领取课程奖励的保存在这
|
|
* 将领取课程奖励的保存在这
|
|
* @var type
|
|
* @var type
|
|
*/
|
|
*/
|
|
public $comCourseList = array();
|
|
public $comCourseList = array();
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 任务卡信息
|
|
/// 任务卡信息
|
|
/// </summary>
|
|
/// </summary>
|
|
//public List<missCourseItem> compMissCardList = new List<missCourseItem>();
|
|
//public List<missCourseItem> compMissCardList = new List<missCourseItem>();
|
|
- public $compMissCardDic=null;
|
|
|
|
-
|
|
|
|
|
|
+ public $compMissCardDic = null;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 当前课程进度,进入下一个课程清0
|
|
* 当前课程进度,进入下一个课程清0
|
|
* @var type
|
|
* @var type
|
|
*/
|
|
*/
|
|
public $progress = 0;
|
|
public $progress = 0;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 年级奖励领取记录
|
|
* 年级奖励领取记录
|
|
* @var type
|
|
* @var type
|
|
*/
|
|
*/
|
|
public $collegeRewardList = array();
|
|
public $collegeRewardList = array();
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @var type
|
|
* @var type
|
|
*/
|
|
*/
|
|
public $maskCollege = 0;
|
|
public $maskCollege = 0;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @var type
|
|
* @var type
|
|
*/
|
|
*/
|
|
public $ingTaskCardDic = null;
|
|
public $ingTaskCardDic = null;
|
|
@@ -65,15 +66,15 @@ class Info_College extends Object_ext{
|
|
* @var type
|
|
* @var type
|
|
*/
|
|
*/
|
|
public $funUnluckTs = 0;
|
|
public $funUnluckTs = 0;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 累计积分
|
|
* 累计积分
|
|
* @var type
|
|
* @var type
|
|
*/
|
|
*/
|
|
public $score = 0;
|
|
public $score = 0;
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @var type
|
|
* @var type
|
|
*/
|
|
*/
|
|
public $scoreRewardList = array();
|
|
public $scoreRewardList = array();
|
|
@@ -82,85 +83,85 @@ class Info_College extends Object_ext{
|
|
* 构造函数
|
|
* 构造函数
|
|
* @param type $args
|
|
* @param type $args
|
|
*/
|
|
*/
|
|
- public function __construct($args = null) {
|
|
|
|
- if($args == null){
|
|
|
|
|
|
+ public function __construct($args = null) {
|
|
|
|
+ if ($args == null) {
|
|
$this->compMissCardDic = new \stdClass();
|
|
$this->compMissCardDic = new \stdClass();
|
|
$this->ingTaskCardDic = new \stdClass();
|
|
$this->ingTaskCardDic = new \stdClass();
|
|
} else {
|
|
} else {
|
|
- parent::__construct($args);
|
|
|
|
- }
|
|
|
|
|
|
+ parent::__construct($args);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 废弃了
|
|
* 废弃了
|
|
*/
|
|
*/
|
|
//public function initialize() {
|
|
//public function initialize() {
|
|
-// $this->compMissCardDic = new \stdClass();
|
|
|
|
-// $dic = GameConfig::course_getItem($this->courseId);
|
|
|
|
-// $misslist = explode(',',$dic->misslist);
|
|
|
|
|
|
+// $this->compMissCardDic = new \stdClass();
|
|
|
|
+// $dic = GameConfig::course_getItem($this->courseId);
|
|
|
|
+// $misslist = explode(',',$dic->misslist);
|
|
// foreach ($misslist as $id) {
|
|
// foreach ($misslist as $id) {
|
|
-// $item = new ins_missCourseItem();
|
|
|
|
-// $item->initialize($id);
|
|
|
|
|
|
+// $item = new ins_missCourseItem();
|
|
|
|
+// $item->initialize($id);
|
|
// $this->compMissCardDic->$id = $item;
|
|
// $this->compMissCardDic->$id = $item;
|
|
// }
|
|
// }
|
|
- //$this->initCompMissCardDic();
|
|
|
|
|
|
+ //$this->initCompMissCardDic();
|
|
//}
|
|
//}
|
|
-
|
|
|
|
|
|
+
|
|
public function initCompMissCardDic() {
|
|
public function initCompMissCardDic() {
|
|
- $this->compMissCardDic = new \stdClass();
|
|
|
|
- $dic = GameConfig::course_getItem($this->courseId);
|
|
|
|
- $misslist = explode(',',$dic->misslist);
|
|
|
|
|
|
+ $this->compMissCardDic = new \stdClass();
|
|
|
|
+ $dic = GameConfig::course_getItem($this->courseId);
|
|
|
|
+ $misslist = explode(',', $dic->misslist);
|
|
foreach ($misslist as $id) {
|
|
foreach ($misslist as $id) {
|
|
- $item = new ins_missCourseItem();
|
|
|
|
- $item->initialize($id);
|
|
|
|
|
|
+ $item = new ins_missCourseItem();
|
|
|
|
+ $item->initialize($id);
|
|
$this->compMissCardDic->$id = $item;
|
|
$this->compMissCardDic->$id = $item;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 修改任务卡状态
|
|
* 修改任务卡状态
|
|
* @param type $id
|
|
* @param type $id
|
|
* @param type $state
|
|
* @param type $state
|
|
*/
|
|
*/
|
|
- public function modifyTaskCardState($id,$state) {
|
|
|
|
|
|
+ public function modifyTaskCardState($id, $state) {
|
|
$ingTaskCardDic = $this->ingTaskCardDic;
|
|
$ingTaskCardDic = $this->ingTaskCardDic;
|
|
foreach ($ingTaskCardDic as $collegeId => $courseDic) {
|
|
foreach ($ingTaskCardDic as $collegeId => $courseDic) {
|
|
foreach ($courseDic as $courseId => $cardDic) {
|
|
foreach ($courseDic as $courseId => $cardDic) {
|
|
foreach ($cardDic as $cardId => $val) {
|
|
foreach ($cardDic as $cardId => $val) {
|
|
- if($cardId == $id){
|
|
|
|
|
|
+ if ($cardId == $id) {
|
|
TaskProc::OnFinishSchoolTask();
|
|
TaskProc::OnFinishSchoolTask();
|
|
$this->ingTaskCardDic->$collegeId->$courseId->$cardId->type = $state;
|
|
$this->ingTaskCardDic->$collegeId->$courseId->$cardId->type = $state;
|
|
- break 3;
|
|
|
|
|
|
+ break 3;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
// if(!StlUtil::dictHasProperty($this->compMissCardDic, $id)){
|
|
// if(!StlUtil::dictHasProperty($this->compMissCardDic, $id)){
|
|
// return;
|
|
// return;
|
|
// }
|
|
// }
|
|
// $this->compMissCardDic->$id->type = $state;
|
|
// $this->compMissCardDic->$id->type = $state;
|
|
-// $this->progress += 1;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+// $this->progress += 1;
|
|
}
|
|
}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 废弃
|
|
* 废弃
|
|
- */
|
|
|
|
- public function updataCourseNew() {
|
|
|
|
|
|
+ */
|
|
|
|
+ public function updataCourseNew() {
|
|
//检测是否到下一年级
|
|
//检测是否到下一年级
|
|
-// $collegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
|
|
|
+// $collegeDic = GameConfig::college_getItem($this->collegeId);
|
|
// if(in_array($this->courseId +1,explode(',', $collegeDic->cList))){
|
|
// if(in_array($this->courseId +1,explode(',', $collegeDic->cList))){
|
|
// $this->courseId += 1;
|
|
// $this->courseId += 1;
|
|
// $this->initCompMissCardDic();
|
|
// $this->initCompMissCardDic();
|
|
// $this->progress = 0;
|
|
// $this->progress = 0;
|
|
// } else {
|
|
// } else {
|
|
-
|
|
|
|
|
|
+
|
|
$this->collegeRewardList[] = $this->collegeId;
|
|
$this->collegeRewardList[] = $this->collegeId;
|
|
//TaskProc::OnFinishAllSchoolTaskOfGrade($this->collegeId);
|
|
//TaskProc::OnFinishAllSchoolTaskOfGrade($this->collegeId);
|
|
-
|
|
|
|
- $this->collegeId += 1;
|
|
|
|
- $newCollegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
|
- if($newCollegeDic == null){
|
|
|
|
|
|
+
|
|
|
|
+ $this->collegeId += 1;
|
|
|
|
+ $newCollegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
|
+ if ($newCollegeDic == null) {
|
|
$this->maskCollege = Enum_College::finish;
|
|
$this->maskCollege = Enum_College::finish;
|
|
$this->collegeId -= 1;
|
|
$this->collegeId -= 1;
|
|
} elseif ($newCollegeDic != null && $newCollegeDic->cList == null) {
|
|
} elseif ($newCollegeDic != null && $newCollegeDic->cList == null) {
|
|
@@ -168,87 +169,90 @@ class Info_College extends Object_ext{
|
|
} else {
|
|
} else {
|
|
$cList = explode(',', $newCollegeDic->cList);
|
|
$cList = explode(',', $newCollegeDic->cList);
|
|
$this->courseId = $cList[0];
|
|
$this->courseId = $cList[0];
|
|
- $this->initCompMissCardDic();
|
|
|
|
- }
|
|
|
|
-// }
|
|
|
|
|
|
+ $this->initCompMissCardDic();
|
|
|
|
+ }
|
|
|
|
+// }
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 废弃
|
|
* 废弃
|
|
*/
|
|
*/
|
|
- public function updataCourse() {
|
|
|
|
- $this->comCourseList[] = $this->courseId;
|
|
|
|
|
|
+ public function updataCourse() {
|
|
|
|
+ $this->comCourseList[] = $this->courseId;
|
|
//检测是否到下一年级
|
|
//检测是否到下一年级
|
|
- $collegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
|
- if(in_array($this->courseId +1,explode(',', $collegeDic->cList))){
|
|
|
|
|
|
+ $collegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
|
+ if (in_array($this->courseId + 1, explode(',', $collegeDic->cList))) {
|
|
$this->courseId += 1;
|
|
$this->courseId += 1;
|
|
$this->initCompMissCardDic();
|
|
$this->initCompMissCardDic();
|
|
$this->progress = 0;
|
|
$this->progress = 0;
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
// else {
|
|
// else {
|
|
// $this->collegeId += 1;
|
|
// $this->collegeId += 1;
|
|
-// $newCollegeDic = GameConfig::college_getItem($this->collegeId);
|
|
|
|
|
|
+// $newCollegeDic = GameConfig::college_getItem($this->collegeId);
|
|
// $cList = explode(',', $newCollegeDic->cList);
|
|
// $cList = explode(',', $newCollegeDic->cList);
|
|
// $this->courseId = $cList[0];
|
|
// $this->courseId = $cList[0];
|
|
// $this->initCompMissCardDic();
|
|
// $this->initCompMissCardDic();
|
|
// $this->progress = 0;
|
|
// $this->progress = 0;
|
|
-// }
|
|
|
|
|
|
+// }
|
|
}
|
|
}
|
|
|
|
+
|
|
//废弃
|
|
//废弃
|
|
public function checkCollege() {
|
|
public function checkCollege() {
|
|
- if($this->maskCollege == Enum_College::update){
|
|
|
|
|
|
+ if ($this->maskCollege == Enum_College::update) {
|
|
$dic = GameConfig::college_getItem($this->collegeId);
|
|
$dic = GameConfig::college_getItem($this->collegeId);
|
|
- if($dic != null && $dic->cList != null){
|
|
|
|
|
|
+ if ($dic != null && $dic->cList != null) {
|
|
$this->maskCollege = 0;
|
|
$this->maskCollege = 0;
|
|
$cList = explode(',', $dic->cList);
|
|
$cList = explode(',', $dic->cList);
|
|
$this->courseId = $cList[0];
|
|
$this->courseId = $cList[0];
|
|
$this->initCompMissCardDic();
|
|
$this->initCompMissCardDic();
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
//------------------new---------------------
|
|
//------------------new---------------------
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 根据天 初始化
|
|
* 根据天 初始化
|
|
* @return type
|
|
* @return type
|
|
*/
|
|
*/
|
|
- public function initTaskCard() {
|
|
|
|
- if($this->funUnluckTs == 0){
|
|
|
|
- return;
|
|
|
|
|
|
+ public function initTaskCard() {
|
|
|
|
+ if ($this->funUnluckTs == 0) {
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
-
|
|
|
|
- $day = TimeUtil::tsDay($this->funUnluckTs);
|
|
|
|
- $curDay = TimeUtil::tsDay(time());
|
|
|
|
|
|
+
|
|
|
|
+ $day = TimeUtil::totalDays($this->funUnluckTs);
|
|
|
|
+ $curDay = TimeUtil::totalDays(time());
|
|
$num = $curDay - $day;
|
|
$num = $curDay - $day;
|
|
-
|
|
|
|
- $collegeMo = GameConfig::college();
|
|
|
|
- $college = (array)$collegeMo;
|
|
|
|
|
|
+
|
|
|
|
+ $collegeMo = GameConfig::college();
|
|
|
|
+ $college = (array) $collegeMo;
|
|
ksort($college);
|
|
ksort($college);
|
|
-
|
|
|
|
|
|
+
|
|
$index = 0;
|
|
$index = 0;
|
|
foreach ($college as $collegeId => $collegeMo) {
|
|
foreach ($college as $collegeId => $collegeMo) {
|
|
- $courseArr = explode(',',$collegeMo->cList);
|
|
|
|
-
|
|
|
|
- if(!StlUtil::dictHasProperty($this->ingTaskCardDic, $collegeId)){
|
|
|
|
|
|
+ $courseArr = explode(',', $collegeMo->cList);
|
|
|
|
+
|
|
|
|
+ if (!StlUtil::dictHasProperty($this->ingTaskCardDic, $collegeId)) {
|
|
$this->ingTaskCardDic->$collegeId = new \stdClass();
|
|
$this->ingTaskCardDic->$collegeId = new \stdClass();
|
|
}
|
|
}
|
|
$collegeDic = $this->ingTaskCardDic->$collegeId;
|
|
$collegeDic = $this->ingTaskCardDic->$collegeId;
|
|
- foreach ($courseArr as $courseId) {
|
|
|
|
- if(!StlUtil::dictHasProperty($collegeDic, $courseId)){
|
|
|
|
- $mo= GameConfig::course_getItem($courseId);
|
|
|
|
- $arr = explode(',',$mo->misslist);
|
|
|
|
|
|
+ foreach ($courseArr as $courseId) {
|
|
|
|
+ if (!StlUtil::dictHasProperty($collegeDic, $courseId)) {
|
|
|
|
+ $mo = GameConfig::course_getItem($courseId);
|
|
|
|
+ $arr = explode(',', $mo->misslist);
|
|
$dic = new \stdClass();
|
|
$dic = new \stdClass();
|
|
foreach ($arr as $cardId) {
|
|
foreach ($arr as $cardId) {
|
|
- $item = new ins_missCourseItem();
|
|
|
|
- $item->initialize($cardId);
|
|
|
|
-
|
|
|
|
|
|
+ $item = new ins_missCourseItem();
|
|
|
|
+ $item->initialize($cardId);
|
|
|
|
+
|
|
$cid = StoreProc::PutTaskCardInStore($cardId); // 存入背包
|
|
$cid = StoreProc::PutTaskCardInStore($cardId); // 存入背包
|
|
NormalEventProc::OnTaskCard_Actived($cid, null); # 带入事件
|
|
NormalEventProc::OnTaskCard_Actived($cid, null); # 带入事件
|
|
-
|
|
|
|
|
|
+
|
|
$item->indexId = $cid;
|
|
$item->indexId = $cid;
|
|
- $taskCard = new Ins_TaskCard(req()->userInfo->game->store->taskcards->$cid);# 任务卡对象
|
|
|
|
|
|
+ $taskCard = new Ins_TaskCard(req()->userInfo->game->store->taskcards->$cid); # 任务卡对象
|
|
$taskCard->state = Enum_TaskCardStateType::ing;
|
|
$taskCard->state = Enum_TaskCardStateType::ing;
|
|
-
|
|
|
|
|
|
+
|
|
TaskProc::OnGetSchoolTask();
|
|
TaskProc::OnGetSchoolTask();
|
|
foreach ($taskCard->curSteps as &$tsp) { # 初期里面只有一个任务
|
|
foreach ($taskCard->curSteps as &$tsp) { # 初期里面只有一个任务
|
|
$tsp = new Ins_TaskStep($tsp);
|
|
$tsp = new Ins_TaskStep($tsp);
|
|
@@ -265,21 +269,21 @@ class Info_College extends Object_ext{
|
|
}
|
|
}
|
|
$dic->$cardId = $item;
|
|
$dic->$cardId = $item;
|
|
//统计
|
|
//统计
|
|
- StatisticsProc::TargetStatistics(Enum_TargetStatistics::collegeCouseId_UnlockUserNum,$cardId);
|
|
|
|
|
|
+ StatisticsProc::TargetStatistics(Enum_TargetStatistics::collegeCouseId_UnlockUserNum, $cardId);
|
|
req()->userInfo->game->store->taskcards->$cid = $taskCard;
|
|
req()->userInfo->game->store->taskcards->$cid = $taskCard;
|
|
- }
|
|
|
|
- //$this->ingTaskCardDic->$courseId = $dic;
|
|
|
|
|
|
+ }
|
|
|
|
+ //$this->ingTaskCardDic->$courseId = $dic;
|
|
$collegeDic->$courseId = $dic;
|
|
$collegeDic->$courseId = $dic;
|
|
}
|
|
}
|
|
- $this->ingTaskCardDic->$collegeId = $collegeDic;
|
|
|
|
- if($index >= $num){
|
|
|
|
|
|
+ $this->ingTaskCardDic->$collegeId = $collegeDic;
|
|
|
|
+ if ($index >= $num) {
|
|
break 2;
|
|
break 2;
|
|
}
|
|
}
|
|
- $index += 1;
|
|
|
|
|
|
+ $index += 1;
|
|
}
|
|
}
|
|
- }
|
|
|
|
- req()->userInfo->game->college->ingTaskCardDic = $this->ingTaskCardDic;
|
|
|
|
-
|
|
|
|
|
|
+ }
|
|
|
|
+ req()->userInfo->game->college->ingTaskCardDic = $this->ingTaskCardDic;
|
|
|
|
+
|
|
//--------------------
|
|
//--------------------
|
|
//$courseDic = GameConfig::course();
|
|
//$courseDic = GameConfig::course();
|
|
// $index = 0;
|
|
// $index = 0;
|
|
@@ -288,16 +292,16 @@ class Info_College extends Object_ext{
|
|
// $arr = explode(',',$mo->misslist);
|
|
// $arr = explode(',',$mo->misslist);
|
|
// $dic = new \stdClass();
|
|
// $dic = new \stdClass();
|
|
// foreach ($arr as $cardId) {
|
|
// foreach ($arr as $cardId) {
|
|
-// $item = new ins_missCourseItem();
|
|
|
|
-// $item->initialize($cardId);
|
|
|
|
-//
|
|
|
|
|
|
+// $item = new ins_missCourseItem();
|
|
|
|
+// $item->initialize($cardId);
|
|
|
|
+//
|
|
// $cid = StoreProc::PutTaskCardInStore($cardId); // 存入背包
|
|
// $cid = StoreProc::PutTaskCardInStore($cardId); // 存入背包
|
|
// NormalEventProc::OnTaskCard_Actived($cid, null); # 带入事件
|
|
// NormalEventProc::OnTaskCard_Actived($cid, null); # 带入事件
|
|
-//
|
|
|
|
|
|
+//
|
|
// $item->indexId = $cid;
|
|
// $item->indexId = $cid;
|
|
// $taskCard = new Ins_TaskCard(req()->userInfo->game->store->taskcards->$cid);# 任务卡对象
|
|
// $taskCard = new Ins_TaskCard(req()->userInfo->game->store->taskcards->$cid);# 任务卡对象
|
|
// $taskCard->state = Enum_TaskCardStateType::ing;
|
|
// $taskCard->state = Enum_TaskCardStateType::ing;
|
|
-//
|
|
|
|
|
|
+//
|
|
// TaskProc::OnGetSchoolTask();
|
|
// TaskProc::OnGetSchoolTask();
|
|
// foreach ($taskCard->curSteps as &$tsp) { # 初期里面只有一个任务
|
|
// foreach ($taskCard->curSteps as &$tsp) { # 初期里面只有一个任务
|
|
// $tsp = new Ins_TaskStep($tsp);
|
|
// $tsp = new Ins_TaskStep($tsp);
|
|
@@ -314,26 +318,26 @@ class Info_College extends Object_ext{
|
|
// }
|
|
// }
|
|
// $dic->$cardId = $item;
|
|
// $dic->$cardId = $item;
|
|
// req()->userInfo->game->store->taskcards->$cid = $taskCard;
|
|
// req()->userInfo->game->store->taskcards->$cid = $taskCard;
|
|
-// }
|
|
|
|
-// $this->ingTaskCardDic->$courseId = $dic;
|
|
|
|
|
|
+// }
|
|
|
|
+// $this->ingTaskCardDic->$courseId = $dic;
|
|
// }
|
|
// }
|
|
-//
|
|
|
|
|
|
+//
|
|
// if($index >= $num){
|
|
// if($index >= $num){
|
|
// break;
|
|
// break;
|
|
// }
|
|
// }
|
|
// $index += 1;
|
|
// $index += 1;
|
|
-// }
|
|
|
|
|
|
+// }
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 圣哲学院功能结算时间
|
|
* 圣哲学院功能结算时间
|
|
*/
|
|
*/
|
|
public function setFunUnluckTs() {
|
|
public function setFunUnluckTs() {
|
|
- if($this->funUnluckTs != 0){
|
|
|
|
|
|
+ if ($this->funUnluckTs != 0) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
- $this->funUnluckTs = time();
|
|
|
|
|
|
+
|
|
|
|
+ $this->funUnluckTs = time();
|
|
$this->initTaskCard();
|
|
$this->initTaskCard();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -352,5 +356,5 @@ class Info_College extends Object_ext{
|
|
public function addScore($val) {
|
|
public function addScore($val) {
|
|
$this->score += $val;
|
|
$this->score += $val;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|