You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
- //Author:fuhc
- //Date:20160919
- //Demo
- require_once "Api/ApiBase.php";
-
-
- require_once "Lib/Action/TEST.class.php";
-
-
- class TESTAPI extends ApiBase{
- function __construct(){
-
- }
-
- function outJson(){
- $op = $this->_get('op');
- if($op=='555'){
- $data=$this->getDictTypeList();
- echo json_encode($data);
- }
-
- }
- function getDictTypeList(){
-
- $test = new TEST;
-
- $dict_type_list=$test->getDictTypeList();
-
- $data=array();
- $data['code']="0";
- $data['info']="";
-
- if($dict_type_list['code']!="0"){
- $data['code']=$dict_type_list['code'];
- $data['info']=$dict_type_list['info'];
- }
- $data['dict_type_list_api']=$dict_type_list['dict_type_list'];
-
-
- return $data;
-
-
- }
-
- }
- $test_api = new TESTAPI;
- $test_api->outJson();
- //$data=$test_api->getDictTypeList();
- //echo json_encode($data);
-
-
- ?>
|