Update Luckdraw.php

This commit is contained in:
Anyon 2020-10-11 19:12:07 +08:00
parent a5b73a473c
commit 8d101552b8

View File

@ -83,7 +83,7 @@ class Luckdraw extends Controller
{
$map = [['prize_code', '<>', ''], ['code', '=', $this->vo['code']]];
$this->records = $this->app->db->name('ActivityLuckdrawRecord')->where($map)->order('id desc')->select()->toArray();
foreach ($this->records as &$vo) $vo['username'] = mb_substr($vo['username'], 0, 1) . '**';
foreach ($this->records as &$vo) $vo['username'] = mb_substr($vo['username'], 0, 1) . ' * * ';
$this->fetch();
}