Commit 2c022d60 by 冷斌

fix bug

parent c8d47097
...@@ -386,18 +386,18 @@ class Api_Login extends PhalApi_Api { ...@@ -386,18 +386,18 @@ class Api_Login extends PhalApi_Api {
return $rs; return $rs;
} }
// if($_SESSION['reg_mobile']==$mobile && $_SESSION['reg_mobile_expiretime']> time() ){ if($_SESSION['reg_mobile']==$mobile && $_SESSION['reg_mobile_expiretime']> time() ){
// $rs['code']=1002; $rs['code']=1002;
// $rs['msg']='验证码5分钟有效,请勿多次发送'; $rs['msg']='验证码5分钟有效,请勿多次发送';
// return $rs; return $rs;
// } }
//
// $limit = ip_limit(); $limit = ip_limit();
// if( $limit == 1){ if( $limit == 1){
// $rs['code']=1003; $rs['code']=1003;
// $rs['msg']='您已当日发送次数过多'; $rs['msg']='您已当日发送次数过多';
// return $rs; return $rs;
// } }
$mobile_code = random(6,1); $mobile_code = random(6,1);
/* 发送验证码 */ /* 发送验证码 */
...@@ -478,7 +478,7 @@ class Api_Login extends PhalApi_Api { ...@@ -478,7 +478,7 @@ class Api_Login extends PhalApi_Api {
$mobile_code = random(6,1); $mobile_code = random(6,1);
/* 发送验证码 */ /* 发送验证码 */
$result=sendCode($mobile,$mobile_code); $result=sendCode($mobile,$mobile_code, 630139);
if($result['code']==0){ if($result['code']==0){
$_SESSION['forget_mobile'] = $mobile; $_SESSION['forget_mobile'] = $mobile;
$_SESSION['forget_mobile_code'] = $mobile_code; $_SESSION['forget_mobile_code'] = $mobile_code;
...@@ -636,7 +636,7 @@ class Api_Login extends PhalApi_Api { ...@@ -636,7 +636,7 @@ class Api_Login extends PhalApi_Api {
$mobile_code = random(6,1); $mobile_code = random(6,1);
/* 发送验证码 */ /* 发送验证码 */
$result=sendCode($mobile,$mobile_code); $result=sendCode($mobile,$mobile_code, 630143);
if($result['code']==0){ if($result['code']==0){
$_SESSION['bind_mobile'] = $mobile; $_SESSION['bind_mobile'] = $mobile;
$_SESSION['bind_mobile_code'] = $mobile_code; $_SESSION['bind_mobile_code'] = $mobile_code;
...@@ -704,7 +704,7 @@ class Api_Login extends PhalApi_Api { ...@@ -704,7 +704,7 @@ class Api_Login extends PhalApi_Api {
$mobile_code = random(6,1); $mobile_code = random(6,1);
/* 发送验证码 */ /* 发送验证码 */
$result=sendCode($mobile,$mobile_code); $result=sendCode($mobile,$mobile_code, 630131);
if($result['code']==0){ if($result['code']==0){
$_SESSION['login_mobile'] = $mobile; $_SESSION['login_mobile'] = $mobile;
$_SESSION['login_mobile_code'] = $mobile_code; $_SESSION['login_mobile_code'] = $mobile_code;
......
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