新增了消息推送策略模式发送
This commit is contained in:
@@ -317,5 +317,37 @@ function couponScopeToString(int|string $application_scope): string
|
||||
} else {
|
||||
$result = "";
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换服务包订单类型为汉字
|
||||
* @param int|string $order_service_type 服务包类型(1:健康包 2:随访包)
|
||||
* @return string
|
||||
*/
|
||||
function orderServiceTypeToString(int|string $order_service_type): string
|
||||
{
|
||||
if ($order_service_type == 1) {
|
||||
$result = "健康包";
|
||||
} elseif ($order_service_type == 2) {
|
||||
$result = "随访包";
|
||||
} else {
|
||||
$result = "服务包";
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换每月次数为汉字
|
||||
* @param int|string $monthly_frequency 服务包类型(1:健康包 2:随访包)
|
||||
* @return string
|
||||
*/
|
||||
function monthlyFrequencyToString(int|string $monthly_frequency): string
|
||||
{
|
||||
$result = $monthly_frequency;
|
||||
if ($monthly_frequency == 0) {
|
||||
$result = "不限";
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
Reference in New Issue
Block a user