Browse Source

rollback sms code send

master
filesite 10 months ago
parent
commit
c626aad775
  1. 6
      themes/tajian/controller/FrontapiController.php
  2. 4
      themes/tajian/views/site/login.php
  3. 4
      themes/tajian/views/site/register.php

6
themes/tajian/controller/FrontapiController.php

@ -682,12 +682,16 @@ eof; @@ -682,12 +682,16 @@ eof;
//发送之前先查询当天该手机号码的发送情况,并根据发送结果来决定是否发送验证码短信
$api_query = FSC::$app['config']['service_3rd_api_domain'] . '/aliyun/querysendresult/';
//$res_query = $this->request($api_query, json_encode($params), $timeout, $pc, $headers);
$res_query = $this->request($api_query, json_encode($params), $timeout, $pc, $headers);
//由于aliyun短信功能不再支持个人身份开通,关闭短信验证码发送功能
/*
$res_query = array(
'status' => 200,
'result' => '{"code":1, "rescode":2}',
);
*/
if (!empty($res_query) && $res_query['status'] == 200) {
$resData = json_decode($res_query['result'], true);
if ($resData['code'] == 1) {

4
themes/tajian/views/site/login.php

@ -3,13 +3,13 @@ @@ -3,13 +3,13 @@
<div class="mb-3 pt20">
<label for="text_input_username" class="form-label">手机号码</label>
<input id="text_input_username" name="username" placeholder="请填写中国大陆手机号码" type="text">
<p><small>如需体验,请<a href="/site/contact/">联系我们</a></small></p>
<?php /*<p><small>如需体验,请<a href="/site/contact/">联系我们</a></small></p>*/ ?>
</div>
<div class="mb-3 twocol">
<label for="text_input_sm" class="form-label">验证码</label>
<input id="text_input_sm" name="smscode" placeholder="输入收到的短信验证码" type="number">
<button class="smsbtn bt_sms_JS button button-sm button-shadow">发送验证码</button>
<p><small class="sms_tip_JS"><?php /*验证码<strong>当天有效</strong>,收到请保留 24 小时*/ ?></small></p>
<p><small class="sms_tip_JS">验证码<strong>当天有效</strong>,收到请保留 24 小时</small></p>
</div>
<div class="avform_bt vercenter">
<button class="jsbtn" aria-label="登录" type="submit">

4
themes/tajian/views/site/register.php

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
<div class="mb-3">
<label for="text_input_username" class="form-label">手机号码</label>
<input id="text_input_username" name="username" placeholder="请填写中国大陆手机号码" type="text">
<p><small>如需体验,请<a href="/site/contact/">联系我们</a></small></p>
<?php /*<p><small>如需体验,请<a href="/site/contact/">联系我们</a></small></p>*/ ?>
</div>
<div class="mb-3 twocol">
<label for="text_input_sm" class="form-label">验证码
@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
</label>
<input id="text_input_sm" name="smscode" placeholder="输入收到的短信验证码" type="number">
<button type="button" class="smsbtn bt_sms_JS button button-sm button-shadow">发送验证码</button>
<p><small class="sms_tip_JS"><?php /*验证码<strong>当天有效</strong>,收到请保留 24 小时*/ ?></small></p>
<p><small class="sms_tip_JS">验证码<strong>当天有效</strong>,收到请保留 24 小时</small></p>
</div>
<div class="avform_bt vercenter">
<button class="jsbtn" aria-label="注册" type="submit">

Loading…
Cancel
Save