|
@@ -71,6 +71,10 @@ class TaskProc {
|
|
}
|
|
}
|
|
|
|
|
|
$retDic = (array) $retDic;
|
|
$retDic = (array) $retDic;
|
|
|
|
+ if(count($retDic) <= 0){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
ksort($retDic);
|
|
ksort($retDic);
|
|
$index = ctx()->task->taskIndex;
|
|
$index = ctx()->task->taskIndex;
|
|
foreach ($retDic as $id => $mo) {
|
|
foreach ($retDic as $id => $mo) {
|
|
@@ -97,7 +101,7 @@ class TaskProc {
|
|
foreach ($dic as $id => $mo) {
|
|
foreach ($dic as $id => $mo) {
|
|
if($mo->type == 2){
|
|
if($mo->type == 2){
|
|
foreach ($taskcards as $uid => $card) {
|
|
foreach ($taskcards as $uid => $card) {
|
|
- if($card->typeId == $mo->id){
|
|
|
|
|
|
+ if($card->typeId == $mo->typeId){
|
|
$dailyCards[] = $uid;
|
|
$dailyCards[] = $uid;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -109,8 +113,12 @@ class TaskProc {
|
|
foreach ($dailyCards as $uid) {
|
|
foreach ($dailyCards as $uid) {
|
|
unset($taskcards->$uid);
|
|
unset($taskcards->$uid);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
$retDic = (array) $retDic;
|
|
$retDic = (array) $retDic;
|
|
|
|
+ if(count($retDic) <= 0){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
ksort($retDic);
|
|
ksort($retDic);
|
|
$index = ctx()->task->taskIndex;
|
|
$index = ctx()->task->taskIndex;
|
|
foreach ($retDic as $id => $mo) {
|
|
foreach ($retDic as $id => $mo) {
|