Ejemplo n.º 1
0
function get_xindai_recommend($money, $month)
{
    global $client, $_GET, $city;
    for ($i = 1; $i <= 3; $i++) {
        $result = arrayCoding($client->get_xindai_list($city, $_GET['xd_type'], $money, $month, array(), 1, 5), 'UTF-8', CHARSET);
        if ($result['rs_code'] == '1000') {
            break;
        }
    }
    if ($i == 4) {
        showmessage('dzapp_haodai:callback_error_user');
    }
    return $result;
}
Ejemplo n.º 2
0
                            if ($tables.hasClass(\'hide-table\')) {
                            $tables.removeClass(\'hide-table\');
                                    $(this).html(\'' . lang('plugin/dzapp_haodai', 'hide-table') . '\');
                            } else
                            {
                            $tables.addClass(\'hide-table\');
                                    $(this).html(\'' . lang('plugin/dzapp_haodai', 'check-more') . '\');
                            }
                            });';
    }
    include template('dzapp_haodai:calc_' . $type);
} elseif ($action == 'fastloan') {
    if (submitcheck('applysubmit')) {
        if (!$_GET['mobile'] || !$_GET['nickname'] || !$_GET['money']) {
            showmessage('dzapp_haodai:apply_incomplete');
        }
        $_GET['nickname'] = diconv($_GET['nickname'], CHARSET, 'UTF-8');
        $_GET['money'] = intval($_GET['money']);
        if (!is_numeric($_GET['mobile'])) {
            showmessage('dzapp_haodai:mobile_be_int');
        }
        $result = arrayCoding($client->send_xindai_apply($city, $_GET['nickname'], $_GET['money'], $_GET['mobile']), 'UTF-8', CHARSET);
        if ($result['rs_code'] != '1000') {
            showmessage(lang('plugin/dzapp_haodai', 'apply_fail') . $result['rs_msg']);
        }
        showmessage('dzapp_haodai:apply_succeed', 'plugin.php?id=dzapp_haodai');
    } else {
        $navtitle = lang('plugin/dzapp_haodai', 'fastloan');
        include template('dzapp_haodai:fastloan');
    }
}