You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
835 B
PHP
27 lines
835 B
PHP
<?php
|
|
|
|
class ChatConst {
|
|
|
|
const replyTypeTime = 'time';
|
|
const replyTypeLike = 'like';
|
|
const replyTypeExact = 'exact';
|
|
const replyTypeMultiWord = 'multi_word';
|
|
|
|
const replySeparator = '[分隔符]';
|
|
|
|
const urgePayTagMallName = '[店铺名称]';
|
|
const urgePayTagGoodsSpec = '[订单商品规格]';
|
|
const urgePayTagGoodsName = '[订单商品名称]';
|
|
const urgePayTagGoodsPrice = '[订单商品价格]';
|
|
const urgePayTagGoodsNum = '[订单商品数量]';
|
|
const urgePayTagOrderTime = '[下单时间]';
|
|
|
|
public static function getReplyTypeText($type) {
|
|
$map = [
|
|
ChatConst::replyTypeExact => '精确匹配',
|
|
ChatConst::replyTypeMultiWord => '多词匹配',
|
|
ChatConst::replyTypeLike => '模糊匹配',
|
|
];
|
|
return $map[$type];
|
|
}
|
|
} |