Exemplo n.º 1
0
/**
 * main service function.
 * @param type $idArrGroup
 */
function execute($idArrGroup)
{
    $tmp = getCompareResult($idArrGroup[0], $idArrGroup[1]);
    $result['status'] = 0;
    $result['data'] = $tmp;
    $result['statics'] = getCompareStatics($tmp);
    echo json_encode($result);
}
Exemplo n.º 2
0
/**
 * main service function.
 * @param type $idArrGroup
 */
function execute($idArr1, $idArr2, $num)
{
    $tmp = getCompareResultWithCustomNum($idArr1, $idArr2, $num);
    $statics = getCompareStatics($tmp);
    print_r($statics);
}