|
@@ -130,7 +130,7 @@ class CollegeProc {
|
|
|
*/
|
|
|
public static function ReceiveCourseReward() {
|
|
|
$req = req();
|
|
|
- list($courseId) = $req->paras;
|
|
|
+ list($collegeId,$courseId) = $req->paras;
|
|
|
|
|
|
$collegeInfo = $req->userInfo->game->college;
|
|
|
my_Assert(!in_array($courseId, $collegeInfo->comCourseList), ErrCode::college_CourseRewardRepeatReceive);
|
|
@@ -138,10 +138,10 @@ class CollegeProc {
|
|
|
$mo = GameConfig::course_getItem($courseId);
|
|
|
$list = explode(',', $mo->misslist);
|
|
|
|
|
|
- my_Assert(StlUtil::dictHasProperty($collegeInfo->ingTaskCardDic, $courseId), ErrCode::college_CourseNotUnlocked);
|
|
|
+ //my_Assert(StlUtil::dictHasProperty($collegeInfo->ingTaskCardDic, $courseId), ErrCode::college_CourseNotUnlocked);
|
|
|
|
|
|
- foreach ($list as $id) {
|
|
|
- my_Assert(StlUtil::dictHasProperty($collegeInfo->ingTaskCardDic->$courseId, $id) && $collegeInfo->ingTaskCardDic->$courseId->$id->type == Enum_TaskCardStateType::drawed, ErrCode::college_TaskCardStateError);
|
|
|
+ foreach ($list as $id) {
|
|
|
+ my_Assert(StlUtil::dictHasProperty($collegeInfo->ingTaskCardDic->$collegeId->$courseId, $id) && $collegeInfo->ingTaskCardDic->$collegeId->$courseId->$id->type == Enum_TaskCardStateType::drawed, ErrCode::college_TaskCardStateError);
|
|
|
}
|
|
|
|
|
|
StoreProc::AddMultiItemInStore($mo->prize); # 发放奖励
|