新增用户弹窗接口,修改用户注册增加弹窗数据
This commit is contained in:
@@ -274,4 +274,27 @@ function mkdirs(string $dir, int $mode = 0755): bool
|
||||
|
||||
return @mkdir($dir, $mode);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换优惠卷适用范围为汉字
|
||||
* @param int|string $application_scope
|
||||
* @return string
|
||||
*/
|
||||
function couponScopeToString(int|string $application_scope): string
|
||||
{
|
||||
if ($application_scope == 1) {
|
||||
$result = "所有问诊类型";
|
||||
} elseif ($application_scope == 2) {
|
||||
$result = "快速问诊";
|
||||
} elseif ($application_scope == 3) {
|
||||
$result = "专家问诊";
|
||||
} elseif ($application_scope == 4) {
|
||||
$result = "公益问诊";
|
||||
} elseif ($application_scope == 5) {
|
||||
$result = "问诊购药";
|
||||
} else {
|
||||
$result = "";
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
Reference in New Issue
Block a user