|
@@ -123,7 +123,7 @@ class TaskProc {
|
|
|
|
|
|
// $cid = StoreProc::PutTaskCardInStore($typeId); # 添加任务卡到背包
|
|
|
StoreProc::PutOverlyingItemInStore($typeId, $num); # 直接进包裹items
|
|
|
- StatisticsProc::TargetStatistics(Enum_TargetStatistics::shopTaskId_BuyUserNum,$typeId);
|
|
|
+ StatisticsProc::TargetStatistics(Enum_TargetStatistics::shopTaskId_BuyUserNum, $typeId);
|
|
|
$userInfo->taskCardShop->selled[] = $typeId; # 添加售罄记录
|
|
|
UserProc::updateUserInfo();
|
|
|
|
|
@@ -230,7 +230,7 @@ class TaskProc {
|
|
|
$college = new Info_College();
|
|
|
$college->setFunUnluckTs();
|
|
|
}
|
|
|
- StatisticsProc::TargetStatistics(Enum_TargetStatistics::unlockbuidId,$plot->presentEffect);
|
|
|
+ StatisticsProc::TargetStatistics(Enum_TargetStatistics::unlockbuidId, $plot->presentEffect);
|
|
|
NormalEventProc::OnUnlockBuild($plot->presentEffect); # 插入解锁事件
|
|
|
} else if (strtolower($plot->presentItem) == strtolower("rename")) {# 改名
|
|
|
// 跳过特殊字符串
|
|
@@ -417,22 +417,22 @@ class TaskProc {
|
|
|
StatisticsProc::SelfTaskDataCollect($taskCard->typeId); #统计自己的任务完成情况
|
|
|
StatisticsProc::TaskDataCollect($taskCard->typeId); #统计最新任务
|
|
|
|
|
|
- if($taskCard->mo()->type == 1){//主线
|
|
|
+ if ($taskCard->mo()->type == 1) {//主线
|
|
|
StatisticsProc::TargetStatistics(Enum_TargetStatistics::mainTaskId_ComUserNum, $taskCard->typeId);
|
|
|
}
|
|
|
-
|
|
|
- if($taskCard->mo()->type == 4){//悬赏
|
|
|
+
|
|
|
+ if ($taskCard->mo()->type == 4) {//悬赏
|
|
|
StatisticsProc::TargetStatistics(Enum_TargetStatistics::shopTaskId_ComUserNum, $taskCard->typeId);
|
|
|
}
|
|
|
-
|
|
|
- if($taskCard->mo()->type == 2){//日常
|
|
|
+
|
|
|
+ if ($taskCard->mo()->type == 2) {//日常
|
|
|
StatisticsProc::TargetStatistics(Enum_TargetStatistics::dailyTaskId_ComUserNum, $taskCard->typeId);
|
|
|
}
|
|
|
-
|
|
|
- if($taskCard->mo()->type == 3){//圣哲
|
|
|
+
|
|
|
+ if ($taskCard->mo()->type == 3) {//圣哲
|
|
|
StatisticsProc::TargetStatistics(Enum_TargetStatistics::collegeTaskId_ComUserNum, $taskCard->typeId);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
req()->userInfo->game->college->addScore($taskCard->mo()->score); #圣哲学院的任务是有积分累计的
|
|
|
|
|
|
UserProc::updateUserInfo(); # 回存玩家数据
|
|
@@ -603,7 +603,7 @@ class TaskProc {
|
|
|
* 每天重置日常任务.
|
|
|
*/
|
|
|
static function ResetDailyTaskCards() {
|
|
|
- var_dump("重置日常任务卡");
|
|
|
+// var_dump("重置日常任务卡");
|
|
|
$store = req()->userInfo->game->store();
|
|
|
my_default_Obj($store->taskcards);
|
|
|
$dailyCards = new \stdClass();
|
|
@@ -1203,7 +1203,7 @@ class TaskProc {
|
|
|
}
|
|
|
|
|
|
static function OnWeaponUpgrade() {
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|