/**
  * 找回密码
  */
 public function find_passwordOp()
 {
     if (checkSeccode($_POST['nchash'], $_POST['captcha'])) {
         if (C('sms_password') != 1) {
             showDialog('系统没有开启手机找回密码功能', '', 'error');
         }
         $phone = $_POST['phone'];
         $captcha = $_POST['sms_captcha'];
         $condition = array();
         $condition['log_phone'] = $phone;
         $condition['log_captcha'] = $captcha;
         $condition['log_type'] = 3;
         $model_sms_log = Model('sms_log');
         $sms_log = $model_sms_log->getSmsInfo($condition);
         if (empty($sms_log) || $sms_log['add_time'] < TIMESTAMP - 1800) {
             //半小时内进行验证为有效
             showDialog('动态码错误或已过期,重新输入', '', 'error');
         }
         $model_member = Model('member');
         $member = $model_member->getMemberInfo(array('member_mobile' => $phone));
         //检查手机号是否已被注册
         if (!empty($member)) {
             $new_password = md5($_POST['password']);
             $model_member->editMember(array('member_id' => $member['member_id']), array('member_passwd' => $new_password));
             $model_member->createSession($member);
             //自动登录
             showDialog('密码修改成功', urlMember('member_information', 'member'), 'succ');
         }
     }
 }
        <dl class="bottom">
          <dt></dt>
          <dd>
            <label class="submit-border">
              <input class="submit" type="submit" value="修改密码并解除" />
            </label>
          </dd>
        </dl>
      </form>
    </div>
    <?php 
    } else {
        ?>
    <div class="relieve pt50">
      <p class="ico"><a href="javascript:void(0);" onclick="ajax_form('weixin_form', '绑定微信账号', '<?php 
        echo urlMember('connect_wx', 'index');
        ?>
', 360);"><img src="<?php 
        echo SHOP_TEMPLATES_URL;
        ?>
/images/wx_bind_small.png"></a>
      <p class="hint">点击按钮,立刻绑定微信账号</p>
    </div>
    <div class="revise pt50">
      <p class="qq">使用微信账号绑定本站,您可以...</p>
      <p>用微信账号轻松登录</p>
      <p class="hint">无需记住本站的账号和密码,随时使用微信轻松登录</p>
    </div>
    <?php 
    }
    ?>
 /**
  * 微信解绑
  */
 public function weixinunbindOp()
 {
     //修改密码
     $model_member = Model('member');
     $update_arr = array();
     if ($_POST['is_editpw'] == 'yes') {
         /**
          * 填写密码信息验证
          */
         $obj_validate = new Validate();
         $obj_validate->validateparam = array(array("input" => $_POST["new_password"], "require" => "true", "validator" => "Length", "min" => 6, "max" => 20, "message" => Language::get('member_sconnect_password_null')), array("input" => $_POST["confirm_password"], "require" => "true", "validator" => "Compare", "operator" => "==", "to" => $_POST["new_password"], "message" => Language::get('member_sconnect_input_two_password_again')));
         $error = $obj_validate->validate();
         if ($error != '') {
             showMessage($error, '', 'html', 'error');
         }
         $update_arr['member_passwd'] = md5(trim($_POST['new_password']));
     }
     $update_arr['weixin_unionid'] = '';
     $update_arr['weixin_info'] = '';
     $edit_state = $model_member->editMember(array('member_id' => $_SESSION['member_id']), $update_arr);
     if (!$edit_state) {
         showMessage('保存失败', '', 'html', 'error');
     }
     session_unset();
     session_destroy();
     showMessage('微信解绑成功', urlLogin('login', 'index', array('ref_url' => urlMember('member_connect', 'weixinbind'))));
 }
 /**
  * 预存款充值
  */
 public function pd_orderOp()
 {
     $pdr_sn = $_GET['pdr_sn'];
     $payment_code = $_GET['payment_code'];
     $url = urlMember('predeposit');
     if (!preg_match('/^\\d{18}$/', $pdr_sn)) {
         output_error('参数错误');
     }
     $logic_payment = Logic('payment');
     $result = $logic_payment->getPaymentInfo($payment_code);
     if (!$result['state']) {
         output_error($result['msg']);
     }
     $payment_info = $result['data'];
     $result = $logic_payment->getPdOrderInfo($pdr_sn, $_SESSION['member_id']);
     if (!$result['state']) {
         output_error($result['msg']);
     }
     if ($result['data']['pdr_payment_state'] || empty($result['data']['api_pay_amount'])) {
         output_error('该充值单不需要支付');
     }
     // 转到第三方API支付
     $this->_api_pay($result['data'], $payment_info);
 }