新增用户弹窗接口,修改用户注册增加弹窗数据

This commit is contained in:
2023-04-27 17:46:52 +08:00
parent 60c257574d
commit de4c302ad2
7 changed files with 131 additions and 4 deletions
+23
View File
@@ -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;
}