Commit 63883884 authored by shajiaiming's avatar shajiaiming

验证码 更新

parent ece89208
......@@ -53,7 +53,7 @@ class ApiSms extends ApiBase
return [$code, $error, $data];
}
if ('86' !== $params['country'] && 'LELE' == $params['appkey']) {
$params['appkey'] = $params['appkey'] .'_EN';
$params['appkey'] = $params['appkey'] . '_EN';
}
//获取模板相关参数
list($error, $content, $relatedId, $provider) = self::getNewTemplates($params['codetype'], $params['country'], $params['appkey']);
......@@ -359,6 +359,10 @@ class ApiSms extends ApiBase
$code = Helper::getRand(4);
$location = $key;
$result[$key] = @str_replace("FzmRandom4", $code, $value);
} else if ($value == "FzmRandom5" || strpos($value, "FzmRandom5") !== false) {
$code = Helper::getRand(5);
$location = $key;
$result[$key] = @str_replace("FzmRandom5", $code, $value);
} else if ($value == "FzmRandom" || strpos($value, "FzmRandom") !== false) {
$code = Helper::getRand();
$location = $key;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment