'关注回复', 2 => '关键词回复', 3 => '默认回复', ]; return $desc[$value] ?? ''; } /** * @notes 匹配类型获取器 * @param $value * @return string * @author Tab * @date 2021/7/29 17:16 */ public function getMatchingTypeDescAttr($value) { $desc = [ 1 => '全匹配', 2 => '模糊匹配', ]; return $desc[$value] ?? ''; } /** * @notes 内容类型获取器 * @param $value * @return string * @author Tab * @date 2021/7/29 17:18 */ public function getContentTypeDescAttr($value) { $desc = [ 1 => '文本', ]; return $desc[$value] ?? ''; } /** * @notes 状态获取器 * @param $value * @return string * @author Tab * @date 2021/7/29 17:19 */ public function getStatusDescAttr($value) { $desc = ['禁用', '开启']; return $desc[$value] ?? ''; } }