This commit is contained in:
2026-04-21 23:01:55 +08:00
commit 08e56caa72
597 changed files with 159445 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace app\admin\controller;
use app\common\controller\Backend;
/**
* 数字波色查询
*/
class Num extends Backend
{
protected $model = null;
public function _initialize()
{
parent::_initialize();
$this->model = new \app\admin\model\Num;
}
/**
* 返回数字与波色的映射关系
*/
public function getColorMap()
{
$list = $this->model->field('num,color')->select();
$map = [];
foreach ($list as $item) {
$map[$item['num']] = $item['color'];
}
$this->success($map);
}
}