feat: show zodiac animal below each number ball in history table

This commit is contained in:
2026-04-21 23:18:07 +08:00
parent c77f326566
commit 3d22f3b2c4
2 changed files with 74 additions and 21 deletions
+13
View File
@@ -29,4 +29,17 @@ class Num extends Backend
}
$this->success($map);
}
/**
* 返回数字与生肖的映射关系
*/
public function getAnimalMap()
{
$list = $this->model->field('num,animal')->select();
$map = [];
foreach ($list as $item) {
$map[$item['num']] = $item['animal'];
}
$this->success($map);
}
}