public function edit_dsffreezer()
 {
     $id = intval($_REQUEST['id']);
     $now = get_gmtime();
     $dsffreezer = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "money_freeze where id = " . $id);
     $deal_name = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "deal where id = " . $dsffreezer['deal_id']);
     $user_xinxi = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "user where id = " . $dsffreezer['platformUserNo']);
     $log_info = $user_xinxi['name'];
     $GLOBALS['db']->query("update " . DB_PREFIX . "money_freeze set status=2,create_time ={$now} where id=" . $id);
     require_once APP_ROOT_PATH . "system/libs/user.php";
     if ($GLOBALS['db']->affected_rows()) {
         modify_account(array('money' => $dsffreezer['amount']), $dsffreezer['platformUserNo'], '冻结资金解冻-冻结号码:' . $id);
     }
     syn_mortgate($dsffreezer['platformUserNo']);
     //$GLOBALS['db']->query("update ".DB_PREFIX."user set money=$money,score=$score,point=$point where id=".$dsffreezer['platformUserNo']);
     //save_log($log_info.L("INSERT_SUCCESS"),1);
     $this->success(L("INSERT_SUCCESS"));
 }
 public function ye_mortgage_pay()
 {
     $ajax = intval($_REQUEST['ajax']);
     //print_r($_REQUEST);
     if (!$GLOBALS['user_info']) {
         app_redirect(url("user#login"));
     }
     $paypassword = strim($_REQUEST['paypassword']);
     if ($paypassword == '') {
         showErr("请输入支付密码", 0);
     }
     if (md5($paypassword) != $GLOBALS['user_info']['paypassword']) {
         showErr("支付密码错误", 0);
     }
     $deal_id = intval($_REQUEST['deal_id']);
     $money = floatval($_REQUEST['money']);
     if ($GLOBALS['user_info']['money'] >= $money) {
         $re = set_mortgate($GLOBALS['user_info']['id'], $deal_id, $money);
         if ($re) {
             syn_mortgate($GLOBALS['user_info']['id']);
             showErr("冻结成功", 0);
         } else {
             showErr("冻结失败", 0);
         }
     } else {
         showErr("您的余额不够", 0);
     }
 }