field('payPwd,loginSecret')->find($userId); if($rs['payPwd']==md5($payPwd.$rs['loginSecret'])){ return jsonReturn('',1); } return jsonReturn('支付密码错误',-1); } /** * 获取首页数据 * @param [type] $userId [description] * @return [type] [description] */ function getIndex($userId){ } function getUserInfo($userId,$field){ return $this->where(['userId'=>$userId])->field($field)->find(); } function appLogOut($userId){ $this->where(['userId'=>$userId])->setField('token',''); session('WST_USER',null); //setcookie("loginPwd", null); session('WST_MO_WlADDRESS',null); } }