Commit ac6ab43d authored by zhangjun's avatar zhangjun

修改

parent 6032c623
......@@ -57,7 +57,7 @@ class FindpasswordUcenter extends MY_Controller {
//全站个人会员中心和二手房都有此用户
if($result2>0)
{
$ucenterReturn = $this->user_model->forgetpwdUcenter($telno,$password,$validcode,$this->userid);
$ucenterReturn = $this->user_model->forgetpwdUcenter($telno,$password,$validcode);
if($ucenterReturn['result']==1)
{
//登录个人会员中心
......
......@@ -90,7 +90,8 @@ $(function(){
var flag = true;
$.ajax({
type: 'post',
url : '<?php echo USER_CENTER;?>findpassword',
//url : '<?php //echo USER_CENTER;?>findpassword',
url : '<?php //echo USER_CENTER;?>findpasswordUcenter',
data: "telno="+$("#telno").val()+"&validcode="+$("#validcode").val()+"&setNewPassword="+$("#setNewPassword").val()+"&repetPassword="+$("#repetPassword").val()+"&kind="+$("#kind").val(),
dataType:'html',
success: function(msg){
......
......@@ -714,12 +714,11 @@ class User_model extends MY_Model
* @param int $uid
* @return string
*/
function forgetpwdUcenter($telno, $pwd, $code, $uid)
function forgetpwdUcenter($telno, $pwd, $code)
{
$url = GB_FORGET_PWD_URL . '?phone=' . $telno . '&pwd='. $pwd . '&uid=' . $uid . '&code=' . $code;
$url = GB_FORGET_PWD_URL . '?phone=' . $telno . '&pwd='. $pwd . '&code=' . $code;
$userRes = curl_get_contents( $url );
$userRes = !empty( $userRes ) ? json_decode( $userRes, 1 ) : array();
$userRes['result'] = isset( $userRes['result'] ) ? isset( $userRes['result'] ) : 0;
return $userRes;
}
......@@ -733,7 +732,6 @@ class User_model extends MY_Model
$url = GB_PHONE_LOGIN_URL . '?telno=' . $telno . '&password='. $pwd;
$userRes = curl_get_contents( $url );
$userRes = !empty( $userRes ) ? json_decode( $userRes, 1 ) : array();
$userRes['result'] = isset( $userRes['result'] ) ? isset( $userRes['result'] ) : 0;
return $userRes;
}
......
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