精品深夜福利视频,日本中文字幕不卡,久久久久国产,av综合电影网站


待發短信

在線客服
產品支持 短信寶客服
合作渠道 渠道合作
服務咨詢

4001-021-502

工作時間

9:00-21:00

weCenter問答社區程序新增短信寶短信接口

WeCenter是一款知識型的社交化問答開源社區程序,專注于企業和行業社區內容的整理、歸類、檢索和再發行。 是中國首個基于 PHP + MYSQL 開發的開源化社交問答社區。今天小編為大家講解weCenter_3.19版本的短信接口替換,使用的接口是我們短信寶群發平臺的短信接口,我們短信寶群發短信平臺非常穩定,發送速度快,注冊還送測試短信,推薦大家使用。

首先我們在根目錄下創建smsbao_install.php文件來安裝短信寶相關信息的配置字段:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
header('content-type:text/html;charset=utf-8');
include('system/system.php');
 
$model new AWS_MODEL();
$data array('smsbao_user'=>unserialize(),'smsbao_pwd'=>unserialize(),'smsbao_sign'=>unserialize());
foreach ($data as $key => $value) {
 $datas['varname'] = $key;
 $datas['value'] = $value;
$a $model->insert('system_setting',$datas);
}
 
echo '短信寶插件安裝成功,請刪除smsbao_install.php文件';

接著打開項目\views\default\admin\settings.tpl.htm文件,在93行左右添加配置短信寶信息代碼:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<tr><td>  <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('短信寶用戶名'); ?></span>
                            <div class="col-sm-5 col-xs-8">
   <input name="smsbao_user" class="form-control" type="text" value="<?php echo $this->setting['smsbao_user']; ?>"/>
   <span class="help-block"><?php _e('請填寫短信寶用戶名'); ?> 還沒有賬號?請<a href="http://www.980247.com/reg">點擊注冊</a></span>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('短信寶密碼'); ?></span>
                            <div class="col-sm-5 col-xs-8">
    <input name="smsbao_pwd" class="form-control" type="text" value="<?php echo $this->setting['smsbao_pwd']; ?>"/>
    <span class="help-block"><?php _e('請填寫短信寶密碼'); ?></span>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <span class="col-sm-4 col-xs-3 control-label"><?php _e('短信寶簽名'); ?></span>
                            <div class="col-sm-5 col-xs-8">
    <input name="smsbao_sign" class="form-control" type="text" value="<?php echo $this->setting['smsbao_sign']; ?>"/>
    <span class="help-block"><?php _e('請填寫短信寶簽名'); ?></span>
                            </div>
                        </div>
                    </td>
                </tr>

再修改233~239行左右的代碼

?
1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="col-sm-8 col-xs-8"><label class="checkbox-inline">
<input type="radio" name="register_valid_type" value="email"<?php if ($this->setting['register_valid_type'] == 'email') { ?> checked="checked"<?php } ?> /> 
<?php _e('郵件驗證'); ?></label><label class="checkbox-inline">
<input type="radio" name="register_valid_type" value="mobile"<?php if ($this->setting['register_valid_type'] == 'mobile') { ?> checked="checked"<?php } ?> /> 
<?php _e('短信驗證'); ?></label><label class="checkbox-inline">
<input type="radio" name="register_valid_type" value="approval"<?php if ($this->setting['register_valid_type'] == 'approval') { ?> checked="checked"<?php } ?> /> 
<?php _e('郵件驗證 + 后臺審核'); ?></label><label class="checkbox-inline">
<input type="radio" name="register_valid_type" value="N"<?php if ($this->setting['register_valid_type'] == 'N') { ?> checked="checked"<?php } ?> /> 
<?php _e('不驗證'); ?></label></div>

接著我們打開項目\views\default\account\register.tpl.htm文件,修改59~77行左右的代碼:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
   <?php if (get_setting('register_valid_type') == 'mobile') { ?>
                <li>
 <input class="aw-register-pwd form-control" type="text" name="mobile" id="mobile" placeholder="手機號" tips="<?php _e('請輸入正確手機號'); ?>" errortips="<?php _e('手機號不符合規則'); ?>" />
                </li> <li class="aw-register-verify">
                    <b class="pull-right btn btn-large" id="mocode">獲取驗證碼</b>
<input type="text" class="form-control" name="smsbao_verify" placeholder="<?php _e('短信驗證碼'); ?>" />
                </li> <?php } ?>
                <?php if (get_setting('register_seccode') == 'Y') { ?>
                <li class="aw-register-verify">
<img class="pull-right" id="captcha" onclick="this.src = G_BASE_URL + '/account/captcha/' + Math.floor(Math.random() * 10000);" src="">
<input type="text" id="seccode_verify" class="form-control" name="seccode_verify" placeholder="<?php _e('驗證碼'); ?>" />
                </li>
                <?php } ?>

接著我們再添加短信發送按鈕倒計時的javascript代碼:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<script type="text/javascript">
    var time = 0;
    var res = null;
 
    function sendTime(){
        clearTimeout(res); // 先清空一下倒計時資源。
        time--; // 倒計時時間遞減。
 
        // 如果倒計時到達0時,則恢復按鈕原來的內容
        if (time <= 0) {
            time = "獲取驗證碼";
            $('#mocode').text(time);
            clearTimeout(res);
            time = 0;
            return;
        }
 
        // 倒計時的內容寫到按鈕里面
        $('#mocode').text("剩余" + time + "秒");
        res = setTimeout("sendTime()", 1000);
    }
 
    $(function(){
 
        var flg = true;
 
        $('#mocode').on('click',function(){
                var mobile = $("#mobile").val();
                var code = $("#seccode_verify").val();
                var reg = /^1[3,4,5,7,8]\d{9}$/;
                var ret = false;
                if (code == '') {alert('請填寫驗證碼'); return ret;}
                if (!reg.test(mobile)) {alert('手機號碼不正確');return ret;}
            if (0 == time) {
                var _data = {"code" : code, "mobile" : mobile};
 
                if (flg == true) {
                    // ajax提交請求
        $.ajax({
            //提交數據的類型 POST GET
            type:"POST",
            //提交的網址
            url:G_BASE_URL + '/account/ajax/register_mobile/',
            //提交的數據
            data:_data,
            //返回數據的格式
            datatype: "text",//"xml", "html", "script", "json", "jsonp", "text".
            //成功返回之后調用的函數
            success:function(data){
                console.log(data)
                if (data == 'ok') {
                    time = 60;
                    sendTime();
                    alert('短信發送成功');
                }else{
                    alert(data);
                }
                
            }   ,
 
        });
                }
                return ret;
            }
        })
 
    })
</script>

添加完成之后我們再修改頁面注冊對手機號驗證格式的代碼,在255行左右添加以下代碼:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
 case 'mobile':
         $(this).parent().find('.aw-reg-tips').detach();
         var mobilereg = /^1[34578]\d{9}$/;
       if (!mobilereg.test($(this).val())) {
         $(this).parent().find('.aw-reg-tips').detach();
         $(this).parent().append('<span class="aw-reg-tips aw-reg-right"><i class="aw-icon i-followed"></i></span>');
       }else{
         $(this).parent().find('.aw-reg-tips').detach();
        $(this).parent().append('<span class="aw-reg-tips aw-reg-right"><i class="aw-icon i-followed"></i></span>');
      }
       return;

接著我們打開項目\views\default\account\find_password\modify.tpl.htm文件,替換為以下代碼:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php TPL::output('global/header_meta.tpl.htm'); ?>
 
<div class="aw-register-box">
 <div class="mod-head">
  <a href=""><img src="<?php echo G_STATIC_URL; ?>/css/<?php echo $this->template_name; ?>/img/login_logo.png" alt="" /></a>
  <h1><?php _e('找回密碼'); ?></h1>
 </div>
 <div class="mod-body">
  <form class="aw-register-form" id="fpw_form" method="post" action="account/ajax/find_password_modify/">
   <input type="hidden" name="active_code" value="<?php echo htmlspecialchars($_GET['key']); ?>"/>
   <ul>
    <li class="error alert-danger collapse error_message">
     <p><i class="icon-remove"></i><em></em></p>
    </li>
                <?php if (get_setting('register_valid_type') == 'mobile') { ?>
                <li>
  <input class="aw-register-pwd form-control" type="text" name="mobile" id="mobile" placeholder="手機號" tips="<?php _e('請輸入正確手機號'); ?>" errortips="<?php _e('手機號不符合規則'); ?>" />
                </li>   <li class="aw-register-verify">
                    <b class="pull-right btn btn-large" id="mocode">獲取驗證碼</b>
                    <input type="text" class="form-control" name="smsbao_verify" placeholder="<?php _e('短信驗證碼'); ?>" />
                </li>   <?php } ?>
    <li>
     <input class="aw-register-email form-control" name="password" type="password" placeholder="<?php _e('密碼'); ?>" />
    </li>
    <li>
     <input class="aw-register-email form-control" name="re_password" type="password" placeholder="<?php _e('再次輸入密碼'); ?>" />
    </li>    
    <li class="aw-register-verify">
     <img id="captcha" onclick="this.src = G_BASE_URL + '/account/captcha/' + Math.floor(Math.random() * 10000);" src="" class="auth-img pull-right"/>
     <input class="form-control" type="text" id="seccode_verify" name="seccode_verify" placeholder="<?php _e('驗證碼'); ?>" />
    </li>
    <li class="clearfix">
     <button class="btn btn-large btn-blue btn-block" onclick="AWS.ajax_post($('#fpw_form'), AWS.ajax_processer, 'error_message'); return false;"><?php _e('重置密碼'); ?></button>
    </li>
   </ul>
  </form>
 </div>
</div>
<script type="text/javascript">
    var time = 0;
    var res = null;
 
    function sendTime(){
        clearTimeout(res); // 先清空一下倒計時資源。
        time--; // 倒計時時間遞減。
 
        // 如果倒計時到達0時,則恢復按鈕原來的內容
        if (time <= 0) {
            time = "獲取驗證碼";
            $('#mocode').text(time);
            clearTimeout(res);
            time = 0;
            return;
        }
 
        // 倒計時的內容寫到按鈕里面
        $('#mocode').text("剩余" + time + "秒");
        res = setTimeout("sendTime()", 1000);
    }
 
    $(function(){
 
        var flg = true;
 
        $('#mocode').on('click',function(){
                var mobile = $("#mobile").val();
                var code = $("#seccode_verify").val();
                console.log(code);
                var reg = /^1[3,4,5,7,8]\d{9}$/;
                var ret = false;
                if (code == '') {alert('請填寫驗證碼'); return ret;}
                if (!reg.test(mobile)) {alert('手機號碼不正確');return ret;}
            if (0 == time) {
                var _data = {"code" : code, "mobile" : mobile};
      console.log(_data)
                if (flg == true) {
                    // ajax提交請求
        $.ajax({
            //提交數據的類型 POST GET
            type:"POST",
            //提交的網址
            url:G_BASE_URL + '/account/ajax/register_mobile/',
            //提交的數據
            data:_data,
            //返回數據的格式
            datatype: "text",//"xml", "html", "script", "json", "jsonp", "text".
            //成功返回之后調用的函數
            success:function(data){
                console.log(data)
                if (data == 'ok') {
                    time = 60;
                    sendTime();
                    alert('短信發送成功');
                }else{
                    alert(data);
                }
                
            }   ,
 
        });
                }
                return ret;
            }
        })
 
    })
</script>
<?php TPL::output('global/footer.tpl.htm'); ?>

替換完成之后我們在項目\models\文件夾下創建smsbao.php文件,代碼如下:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
 
if (!defined('IN_ANWSION'))
{
 die;
}
 
/**
* 短信寶發送類
*/
class smsbao_class extends AWS_MODEL
{
 public function sendsms($phone,$content)
 {
  $user = get_setting('smsbao_user');
  $pwd = md5(get_setting('smsbao_pwd'));
  $sign = get_setting('smsbao_sign');
  $url 'http://api.smsbao.com/sms?u='.$user.'&p='.$pwd.'&m='.$phone.'&c=【'.$sign.'】'.$content;
  $ret file_get_contents($url);
  if ($ret == 0) {
   return true;
  }else{
   return false;
  }
 }
}

接著我們打開項目\app\account\find_password.php文件,替換index_action方法:

?
1
2
3
4
5
6
7
8
9
10
11
 public function index_action()
 
 
  if (get_setting('register_valid_type') == 'mobile') {
   TPL::output('account/find_password/modify'); 
  }else{
   TPL::output('account/find_password/index'); 
  }
 
 
 }

再打開項目\app\account\ajax.php文件,替換get_access_rule方法:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 public function get_access_rule()
 {
  $rule_action['rule_type'] = 'white'//黑名單,黑名單中的檢查  'white'白名單,白名單以外的檢查
 
  $rule_action['actions'] = array(
   'check_username',
   'check_email',
   'login_process',
   'register_agreement',
   'send_valid_mail',
   'valid_email_active',
   'register_process',
   'request_find_password',
   'register_mobile',
   'find_password_modify',
   'weixin_login_process'
  );
 
  return $rule_action;
 }

接著替換register_process_action方法:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
 public function register_process_action()
 {
  
  if (get_setting('register_type') == 'close')
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('本站目前關閉注冊')));
  }
  else if (get_setting('register_type') == 'invite' AND !$_POST['icode'])
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('本站只能通過邀請注冊')));
  }
  else if (get_setting('register_type') == 'weixin')
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('本站只能通過微信注冊')));
  }
 
  if ($_POST['icode'])
  {
   if (!$invitation $this->model('invitation')->check_code_available($_POST['icode']) AND $_POST['email'] == $invitation['invitation_email'])
   {
    H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('邀請碼無效或與邀請郵箱不一致')));
   }
  }
 
  if (trim($_POST['user_name']) == '')
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('請輸入用戶名')));
  }
  else if ($this->model('account')->check_username($_POST['user_name']))
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('用戶名已經存在')));
  }
  else if ($check_rs $this->model('account')->check_username_char($_POST['user_name']))
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('用戶名包含無效字符')));
  }
  else if ($this->model('account')->check_username_sensitive_words($_POST['user_name']) OR trim($_POST['user_name']) != $_POST['user_name'])
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('用戶名中包含敏感詞或系統保留字')));
  }
 
  if ($this->model('account')->check_email($_POST['email']))
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('E-Mail 已經被使用, 或格式不正確')));
  }
 
  if (strlen($_POST['password']) < 6 OR strlen($_POST['password']) > 16)
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('密碼長度不符合規則')));
  }
 
  if (! $_POST['agreement_chk'])
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('你必需同意用戶協議才能繼續')));
  }
  if (get_setting('register_valid_type') == 'mobile') {
   
   if (AWS_APP::session()->mo_code != $_POST['smsbao_verify']) {
    H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('請填寫正確的短信驗證碼')));
   }
   if ($this->model('account')->check_mobile($_POST['mobile']))
   {
    H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('手機號已存在,請使用其他手機號')));
   }
 
 
 
 
   $update_data['mobile'] = $_POST['mobile'];
  }else{
 
   // 檢查驗證碼
   if (!AWS_APP::captcha()->is_validate($_POST['seccode_verify']) AND get_setting('register_seccode') == 'Y')
   {
    H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('請填寫正確的驗證碼')));
   }
  }
  if (get_setting('ucenter_enabled') == 'Y')
  {
   $result $this->model('ucenter')->register($_POST['user_name'], $_POST['password'], $_POST['email']);
 
   if (is_array($result))
   {
    $uid $result['user_info']['uid'];
   }
   else
   {
    H::ajax_json_output(AWS_APP::RSM(null, -1, $result));
   }
  }
  else
  {
   $uid $this->model('account')->user_register($_POST['user_name'], $_POST['password'], $_POST['email']);
  }
 
 
  if ($_POST['email'] == $invitation['invitation_email'])
  {
   $this->model('active')->set_user_email_valid_by_uid($uid);
 
   $this->model('active')->active_user_by_uid($uid);
  }
 
  if (isset($_POST['sex']))
  {
   $update_data['sex'] = intval($_POST['sex']);
 
   if ($_POST['province'])
   {
    $update_data['province'] = htmlspecialchars($_POST['province']);
    $update_data['city'] = htmlspecialchars($_POST['city']);
   }
 
   if ($_POST['job_id'])
   {
    $update_data['job_id'] = intval($_POST['job_id']);
   }
 
   $update_attrib_data['signature'] = htmlspecialchars($_POST['signature']);
 
 
 
   // 更新主表
   $this->model('account')->update_users_fields($update_data$uid);
 
   // 更新從表
   $this->model('account')->update_users_attrib_fields($update_attrib_data$uid);
  }
 
  $this->model('account')->setcookie_logout();
  $this->model('account')->setsession_logout();
 
  if ($_POST['icode'])
  {
   $follow_users $this->model('invitation')->get_invitation_by_code($_POST['icode']);
  }
  else if (HTTP::get_cookie('fromuid'))
  {
   $follow_users $this->model('account')->get_user_info_by_uid(HTTP::get_cookie('fromuid'));
  }
 
  if ($follow_users['uid'])
  {
   $this->model('follow')->user_follow_add($uid$follow_users['uid']);
   $this->model('follow')->user_follow_add($follow_users['uid'], $uid);
 
   $this->model('integral')->process($follow_users['uid'], 'INVITE', get_setting('integral_system_config_invite'), '邀請注冊: ' $_POST['user_name'], $follow_users['uid']);
  }
 
  if ($_POST['icode'])
  {
   $this->model('invitation')->invitation_code_active($_POST['icode'], time(), fetch_ip(), $uid);
  }
 
  if (get_setting('register_valid_type') == 'N' OR (get_setting('register_valid_type') == 'email' AND get_setting('register_type') == 'invite'))
  {
   $this->model('active')->active_user_by_uid($uid);
  }
 
  $user_info $this->model('account')->get_user_info_by_uid($uid);
 
 
  if (get_setting('register_valid_type') == 'mobile') {
   $this->model('account')->setcookie_login($user_info['uid'], $user_info['user_name'], $_POST['password'], $user_info['salt']);
   if (!$_POST['_is_mobile'])
    H::ajax_json_output(AWS_APP::RSM(array(
     'url' => get_js_url('/home/first_login-TRUE')
    ), 1, null));
  }
 
 
  if (get_setting('register_valid_type') == 'N' OR $user_info['group_id'] != 3 OR $_POST['email'] == $invitation['invitation_email'])
  {
   $this->model('account')->setcookie_login($user_info['uid'], $user_info['user_name'], $_POST['password'], $user_info['salt']);
   if (!$_POST['_is_mobile'])
   {
    H::ajax_json_output(AWS_APP::RSM(array(
     'url' => get_js_url('/home/first_login-TRUE')
    ), 1, null));
   }
  }
  else
  {
   AWS_APP::session()->valid_email = $user_info['email'];
 
   $this->model('active')->new_valid_email($uid);
 
   if (!$_POST['_is_mobile'])
   {
    H::ajax_json_output(AWS_APP::RSM(array(
     'url' => get_js_url('/account/valid_email/')
    ), 1, null));
   }
  }
 
  if ($_POST['_is_mobile'])
  {
   $this->model('account')->setcookie_login($user_info['uid'], $user_info['user_name'], $_POST['password'], $user_info['salt']);
   
   if ($_POST['return_url'])
   {
    $user_info $this->model('account')->get_user_info_by_uid($uid);
 
    $return_url strip_tags($_POST['return_url']);
   }
   else
   {
    $return_url = get_js_url('/m/');
   }
 
   H::ajax_json_output(AWS_APP::RSM(array(
    'url' => $return_url
   ), 1, null));
  }
 }

替換完成之后增加register_mobile_action方法:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public function register_mobile_action()
 {
  if (!AWS_APP::captcha()->is_validate($_POST['code']) AND get_setting('register_seccode') == 'Y')
  {
   echo '請填寫正確的驗證碼';
   exit;
  }
  if(!preg_match('/^1[3,4,5,7,8]\d{9}$/',$_POST['mobile'])) {
   echo '請填寫正確的手機號碼';
   exit;
  }
  $code  = rand(10000,50000);
  $content '您的驗證碼為:'.$code.' 請妥善保存。';
  AWS_APP::session()->mo_code = $code;
  $ret $this->model('smsbao')->sendsms($_POST['mobile'],$content);
        
  if ($ret) {
   echo '發送成功,請注意查收!';
  }
  
 }

接著我們再替換find_password_modify_action方法:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
public function find_password_modify_action()
 {
 
  if (get_setting('register_valid_type') == 'mobile') {
   if (AWS_APP::session()->mo_code != $_POST['smsbao_verify']) {
    H::ajax_json_output(AWS_APP::RSM(null, -1, AWS_APP::lang()->_t('請填寫正確的短信驗證碼')));
   }
   
  if (!$_POST['password'])
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1,  AWS_APP::lang()->_t('請輸入密碼')));
  }
 
  if ($_POST['password'] != $_POST['re_password'])
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1,  AWS_APP::lang()->_t('兩次輸入的密碼不一致')));
  }
 
   $user_info $this->model('account')->get_user_info_by_mobile($_POST['mobile']);
  $this->model('account')->update_user_password_ingore_oldpassword($_POST['password'], $user_info['uid'], $user_info['salt']);
 
  $this->model('active')->set_user_email_valid_by_uid($user_info['uid']);
 
  if ($user_info['group_id'] == 3)
  {
   $this->model('active')->active_user_by_uid($user_info['uid']);
  }
 
  $this->model('account')->setcookie_logout();
 
  $this->model('account')->setsession_logout();
 
  unset(AWS_APP::session()->find_password);
 
  H::ajax_json_output(AWS_APP::RSM(array(
   'url' => get_js_url('/account/login/'),
  ), 1, AWS_APP::lang()->_t('密碼修改成功, 請返回登錄')));
  }else{
   if (!AWS_APP::captcha()->is_validate($_POST['seccode_verify']))
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1,  AWS_APP::lang()->_t('請填寫正確的驗證碼')));
  }
 
  $active_data $this->model('active')->get_active_code($_POST['active_code'], 'FIND_PASSWORD');
 
  if ($active_data)
  {
   if ($active_data['active_time'] OR $active_data['active_ip'])
   {
    H::ajax_json_output(AWS_APP::RSM(null, -1,  AWS_APP::lang()->_t('鏈接已失效,請重新找回密碼')));
   }
  }
  else
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1,  AWS_APP::lang()->_t('鏈接已失效,請重新找回密碼')));
  }
 
  if (!$_POST['password'])
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1,  AWS_APP::lang()->_t('請輸入密碼')));
  }
 
  if ($_POST['password'] != $_POST['re_password'])
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1,  AWS_APP::lang()->_t('兩次輸入的密碼不一致')));
  }
 
  if (! $uid $this->model('active')->active_code_active($_POST['active_code'], 'FIND_PASSWORD'))
  {
   H::ajax_json_output(AWS_APP::RSM(null, -1,  AWS_APP::lang()->_t('鏈接已失效,請重新找回密碼')));
  }
 
  $user_info $this->model('account')->get_user_info_by_uid($uid);
 
  $this->model('account')->update_user_password_ingore_oldpassword($_POST['password'], $uid$user_info['salt']);
 
  $this->model('active')->set_user_email_valid_by_uid($user_info['uid']);
 
  if ($user_info['group_id'] == 3)
  {
   $this->model('active')->active_user_by_uid($user_info['uid']);
  }
 
  $this->model('account')->setcookie_logout();
 
  $this->model('account')->setsession_logout();
 
  unset(AWS_APP::session()->find_password);
 
  H::ajax_json_output(AWS_APP::RSM(array(
   'url' => get_js_url('/account/login/'),
  ), 1, AWS_APP::lang()->_t('密碼修改成功, 請返回登錄')));
  }
 }

好了,經過以上的替換,短信寶的短信平臺已經替換成功了,可以正常使用了。我們進行測試發送。

報備一下短信寶的VIP模板,這樣就可以走短信寶的優質通道了,即便遇到敏感文字我們都不會人工審核,短信內容3~5秒就可送達。

另外:我們已經開發好完整的weCenter問答社區程序短信寶插件,點擊此鏈接 下載及查看安裝流程。

開源插件

最新更新

電商類

CMS類

微信類

文章標簽
精品深夜福利视频,日本中文字幕不卡,久久久久国产,av综合电影网站
裤袜国产欧美精品一区| 亚洲欧美日韩在线观看a三区 | 午夜欧美在线| 岛国av免费在线观看| 欧美激情aⅴ一区二区三区 | 激情久久一区二区| 国产日韩视频| 国产欧美精品久久| 91精品美女| 日韩精品一二三四| 丝瓜av网站精品一区二区| 亚洲精品观看| 久久不见久久见国语| 欧美1区二区| 日韩精品欧美| 亚洲天堂久久| 蜜臀精品久久久久久蜜臀| 综合激情五月婷婷| 国产剧情在线观看一区| 久久影院资源站| 日韩影院二区| 在线视频精品| 日韩av成人高清| 久久久久久色| 日韩精品乱码av一区二区| 日本vs亚洲vs韩国一区三区二区| 日本免费在线视频不卡一不卡二| 国产欧美一区二区三区国产幕精品| 国产午夜久久av| 中文字幕人成乱码在线观看 | 超碰超碰人人人人精品| 免费成人网www| 欧美久久香蕉| 久久免费高清| 欧美日韩中文| 亚洲夜间福利| 亚洲日产av中文字幕| 久久国产精品免费精品3p| 大香伊人久久精品一区二区| 久热综合在线亚洲精品| 精品精品国产三级a∨在线| 婷婷成人在线| 麻豆91在线播放| 亚洲天堂av资源在线观看| 亚洲永久av| 亚洲深爱激情| 国产精品s色| 国产精品超碰| 欧美激情 亚洲a∨综合| 国产福利一区二区三区在线播放| 国产欧美69| 欧美日韩在线观看视频小说| 欧美~级网站不卡| 麻豆一区二区在线| 久久高清国产| 午夜久久中文| 欧美激情视频一区二区三区免费| 蜜桃久久av| 亚洲福利一区| 国产福利一区二区精品秒拍| 日韩大片在线播放| 国产精品一区二区av交换| 99视频+国产日韩欧美| 欧美国产偷国产精品三区| 蜜臀久久久久久久| 亚洲美洲欧洲综合国产一区| 美女久久99| 国产一区 二区| 蜜臀久久99精品久久久久宅男| 另类中文字幕国产精品| 麻豆国产精品视频| 国产伦理一区| 国产精品mm| 国产精品对白| 精品久久国产一区| 精品丝袜久久| 欧美韩日一区| 欧美aa一级| 成人看片网站| 91精品91| 中文不卡在线| 午夜影院欧美| 在线看片日韩| 青青草91视频| 久久精品国产网站| av高清不卡| 国产一区成人| 综合视频一区| 久久久久网站| 欧美在线观看视频一区| 日韩国产网站| 亚洲美女久久| 美女视频网站久久| 亚洲二区三区不卡| 欧美日韩亚洲三区| 福利片在线一区二区| 日韩精品免费一区二区三区| 亚洲一区中文| 国产欧美日韩免费观看| 秋霞影院一区二区三区| 日韩精品一区二区三区av| 日韩a一区二区| 免费日韩一区二区| 亚久久调教视频| 久久精品国产99久久| 136国产福利精品导航网址| 免费精品视频在线| 日韩免费精品| 国产精品蜜月aⅴ在线| 国产精品2区| 日韩午夜精品| 欧美在线网站| 日韩高清中文字幕一区| 蜜桃av一区二区在线观看| 青青青国产精品| 国产精品高颜值在线观看| 激情综合网站| 色一区二区三区| 国产美女视频一区二区| 国产一区国产二区国产三区| 久久久久美女| 最近国产精品视频| 成人免费电影网址| 亚洲手机在线| 99日韩精品| 欧美久久精品| 日韩a一区二区| 久久视频精品| 久久最新视频| 欧美jjzz| 性色av一区二区怡红| 久久亚洲国产精品一区二区| 97精品久久| 午夜久久影院| 成人日韩在线| 日韩视频中文| 日本成人中文字幕在线视频| 欧美国产专区| 日韩一区二区免费看| 久久中文字幕一区二区| 四虎精品一区二区免费| 欧美sss在线视频| 91亚洲国产| 老司机精品久久| 久久久久久美女精品| 国产乱子精品一区二区在线观看| 伊人久久大香伊蕉在人线观看热v| 国产伦精品一区二区三区在线播放| 久久婷婷久久| 久久99影视| 国产精品成人国产| 国产欧美日韩在线观看视频| 国产精品尤物| 在线看片一区| 福利一区和二区| 久久这里只有| 欧美久久一区二区三区| 中文在线不卡| 日本va欧美va瓶| 人人爽香蕉精品| 亚洲精品888| 欧美一级鲁丝片| 精品成人免费一区二区在线播放| 日本国产精品| 在线精品亚洲| 欧美99久久| 中文字幕一区久| 国产不卡av一区二区| 日韩欧美视频专区| 日韩成人高清| 麻豆国产欧美日韩综合精品二区| 亚洲一二av| 国产一区日韩一区| 激情综合网址| 亚州欧美在线| 97在线精品| 欧美激情麻豆| 欧美激情一区| 蜜臀久久精品| 日本不卡视频一二三区| 99热国内精品| 欧美日韩四区| 亚洲精品乱码日韩| 国模精品一区| 久久理论电影| 国产精品久久久久久久久久妞妞 | 日韩在线二区| 一区二区日韩免费看| 日本不卡一二三区黄网| 在线看片不卡| 国产日韩免费| 国产一区二区三区亚洲| 六月婷婷一区| 色婷婷色综合| 欧美亚洲精品在线| 一区二区不卡| 日韩欧美网址| 久久精品网址| 日韩和欧美的一区| 日产精品一区二区|