This commit is contained in:
lin fan
2024-11-04 23:15:02 +08:00
parent 8a4d298ec9
commit bfabe9012e
+3 -3
View File
@@ -46,7 +46,7 @@ class Score extends Wxapp
$where['type'] = $type ? Receiver_score_avg_day_model::TYPE_BIZ : Receiver_score_avg_day_model::TYPE_USER;
$row = $this->receiver_score_avg_day_model->get($where);
$up_time = date('Y-m-d');
$title_hd = '较上';
$title_hd = '较上';
} elseif ($day_type == 2) {
$up_month = strtotime("-1 month"); //上个月时间
$where['year'] = date('Y', $up_month);
@@ -66,7 +66,7 @@ class Score extends Wxapp
$score = ceil($row['score']) ?: 0;
$abs_score = ceil($row['change_score']) ?: 0;
if ($abs_score >= 0) {
$title = $title_hd . "{$abs_score}";
$title = $title_hd . "{$abs_score}";
$score_trend = 1;
} else {
$abs_score = abs($abs_score);
@@ -168,7 +168,7 @@ class Score extends Wxapp
$up_data_score = $change_score;
$score_trend = 1;
if ($up_data_score >= 0) {
$change_text = '较上一日升' . $up_data_score . '分';
$change_text = '较上一日升' . $up_data_score . '分';
} else {
$change_text = '较上一日下降' . abs($up_data_score) . '分';
$score_trend = 2;