|
@@ -119,12 +119,24 @@ class Info_College extends Object_ext{
|
|
|
* @param type $id
|
|
|
* @param type $state
|
|
|
*/
|
|
|
- public function modifyTaskCardState($id,$state) {
|
|
|
- if(!StlUtil::dictHasProperty($this->compMissCardDic, $id)){
|
|
|
- return;
|
|
|
+ public function modifyTaskCardState($id,$state) {
|
|
|
+ $ingTaskCardDic = $this->ingTaskCardDic;
|
|
|
+ foreach ($ingTaskCardDic as $collegeId => $courseDic) {
|
|
|
+ foreach ($courseDic as $courseId => $cardDic) {
|
|
|
+ foreach ($cardDic as $cardId => $val) {
|
|
|
+ if($cardId == $id){
|
|
|
+ $this->ingTaskCardDic->$collegeId->$courseId->$cardId->type = $state;
|
|
|
+ break 3;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- $this->compMissCardDic->$id->type = $state;
|
|
|
- $this->progress += 1;
|
|
|
+
|
|
|
+// if(!StlUtil::dictHasProperty($this->compMissCardDic, $id)){
|
|
|
+// return;
|
|
|
+// }
|
|
|
+// $this->compMissCardDic->$id->type = $state;
|
|
|
+// $this->progress += 1;
|
|
|
|
|
|
TaskProc::OnFinishSchoolTask();
|
|
|
}
|