feat: show zodiac animal below each number ball in history table
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user