|
@@ -171,7 +171,7 @@ class Info extends Base
|
|
{
|
|
{
|
|
|
|
|
|
$data['task_score'] = $data['score'];
|
|
$data['task_score'] = $data['score'];
|
|
-
|
|
|
|
|
|
+
|
|
# 链接
|
|
# 链接
|
|
$data['link'] = Dever::url('task/view?id=' . $data['id'], 'main');
|
|
$data['link'] = Dever::url('task/view?id=' . $data['id'], 'main');
|
|
|
|
|
|
@@ -236,15 +236,15 @@ class Info extends Base
|
|
|
|
|
|
$result['total_score'] = $result['report_score'] + $result['group_score'];
|
|
$result['total_score'] = $result['report_score'] + $result['group_score'];
|
|
|
|
|
|
- if ($result['report_score'] > 0) {
|
|
|
|
|
|
+ if ($result['report_score'] >= 0) {
|
|
$result['report'] = '个人已完成 '.$result['report_num'].' 项任务报告,获得 <em>'.$result['report_score'].' ' . $this->data['config']['score_name'] . '</em>';
|
|
$result['report'] = '个人已完成 '.$result['report_num'].' 项任务报告,获得 <em>'.$result['report_score'].' ' . $this->data['config']['score_name'] . '</em>';
|
|
}
|
|
}
|
|
|
|
|
|
- if ($result['group_score'] > 0) {
|
|
|
|
|
|
+ if ($result['group_score'] >= 0) {
|
|
$result['group'] = '组员已完成 '.$result['group_report_num'].' 项任务报告,贡献 <em>'.$result['group_score'].' ' . $this->data['config']['score_name'] . '</em>';
|
|
$result['group'] = '组员已完成 '.$result['group_report_num'].' 项任务报告,贡献 <em>'.$result['group_score'].' ' . $this->data['config']['score_name'] . '</em>';
|
|
}
|
|
}
|
|
|
|
|
|
- if ($result['total_score'] > 0) {
|
|
|
|
|
|
+ if ($result['total_score'] >= 0) {
|
|
$result['total'] = '合计获得 <strong>'.$result['total_score'].'</strong> ' . $this->data['config']['score_name'];
|
|
$result['total'] = '合计获得 <strong>'.$result['total_score'].'</strong> ' . $this->data['config']['score_name'];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -318,7 +318,7 @@ class Info extends Base
|
|
3 => '抢光了',
|
|
3 => '抢光了',
|
|
4 => '等级不够',
|
|
4 => '等级不够',
|
|
5 => '已领取',
|
|
5 => '已领取',
|
|
- 6 => '已领取过该商家'.$data['cate']['name'],
|
|
|
|
|
|
+ 6 => '已领取过'.$data['cate']['name'],
|
|
7 => '已领取过该商家任务',
|
|
7 => '已领取过该商家任务',
|
|
8 => '已超过报告数量上限',
|
|
8 => '已超过报告数量上限',
|
|
9 => '已超过人均报告数量上限',
|
|
9 => '已超过人均报告数量上限',
|
|
@@ -342,7 +342,7 @@ class Info extends Base
|
|
|
|
|
|
} elseif ($result['status'] >= 8) {
|
|
} elseif ($result['status'] >= 8) {
|
|
$result['name'] = '提交报告';
|
|
$result['name'] = '提交报告';
|
|
- $result['class'] = 'button';
|
|
|
|
|
|
+ $result['class'] = 'button disable';
|
|
} elseif ($result['status'] > 1) {
|
|
} elseif ($result['status'] > 1) {
|
|
if ($result['status'] == 3) {
|
|
if ($result['status'] == 3) {
|
|
$result['name'] = '抢光了';
|
|
$result['name'] = '抢光了';
|