Beispiel #1
0
 function get_faq_list($FaqTypeId = 0, $KeyWord = "", $per_page = 1)
 {
     $array['FaqTypeId'] = $FaqTypeId;
     $array['KeyWord'] = $KeyWord;
     $array['Start'] = $per_page < 1 ? $per_page * 10 : ($per_page - 1) * 10;
     $array['Count'] = $per_page == 0 ? 0 : 10;
     $array['Time'] = time();
     $array['ReturnType'] = RETURNTYPE;
     $array['sign'] = set_sign($array, 'lm');
     $array['KeyWord'] = urlencode($array['KeyWord']);
     $res = splice_url($array);
     $return = json_decode(file_get_contents(app_url('config/faq', 'get.faq.list', $res)), true);
     return $return;
 }
Beispiel #2
0
<?php

require "help.php";
$array = array();
foreach ($_POST['blname'] as $k => $v) {
    $array[$v] = $_POST['blvalue'][$k];
}
//$array['Time'] = time();
//$array['ReturnType'] = RETURNTYPE;
$rerutn['testsign'] = test_sign($array, $_REQUEST['ApiKey']);
$array['sign'] = set_sign($array, $_REQUEST['ApiKey']);
foreach ($_POST['blname'] as $k => $v) {
    if (isset($_POST['blfunction'][$k]) && !empty($_POST['blfunction'][$k])) {
        $array[$v] = $_POST['blfunction'][$k]($array[$v]);
    }
}
$res = splice_url($array);
$rerutn['url'] = app_url($_REQUEST['ApiAddress'], $_REQUEST['ApiCtl'], $_REQUEST['ApiAc'], $res);
echo json_encode($rerutn);