MCPcopy Create free account
hub / github.com/CoderOpen/waimai / statusBelongToCate

Function statusBelongToCate

bootstrap/function.php:94–106  ·  view source on GitHub ↗

分类下的状态

($id)

Source from the content-addressed store, hash-verified

92
93//分类下的状态
94function statusBelongToCate($id)
95{
96 $cate_info = config('backer.category_info');
97 $status_info = array_filter($cate_info, function ($arr) use ($id) {
98 return $arr['cate_id'] == $id;
99 });
100
101 array_walk($status_info, function (&$t) {
102 $t = array_diff_key($t, ['cate_name' => 0, 'cate_id' => 0]);
103 });
104
105 return array_values($status_info);
106}
107
108//计算最大公约数
109function max_gys($a, $b)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected