闸门小程序接口
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
if( $code == 0 )
|
||||
{
|
||||
$array = array();
|
||||
$array['error_code'] = 0;
|
||||
$array['data'] = $data;
|
||||
ajax_echo( json_encode( $array ));
|
||||
}
|
||||
else
|
||||
{
|
||||
$array = array();
|
||||
$array['error_code'] = intval($code);
|
||||
$array['error_message'] = $message;
|
||||
ajax_echo( json_encode( $array ));
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user