Home > php教程 > PHP源码 > body text

携程基票 sdk

PHP中文网
Release: 2016-05-26 08:18:39
Original
1051 people have browsed it

1. [代码][PHP]代码    

<?php
/* PHP SDK
 * @version 2.0.0
 * @author magicsky0@163.com
 * @copyright © 2014, Ctrip Corporation. All rights reserved.
 */
date_default_timezone_set(&#39;Asia/Shanghai&#39;);

define( "CU_DEVELOP", false ); // 是否开启开发者模式,打印调试信息
define( "CU_ROOT", str_replace(&#39;\\&#39;,&#39;/&#39;,dirname(__FILE__))."/" );
define( "CU_CLASS_PATH", CU_ROOT."class/" );
define( "CU_COMM_PATH", CU_ROOT."comm/" );
define( "CU_DATA_PATH", CU_ROOT."data/" );

if( !defined("CU_TOKEN_PATH") )
{
	define( "CU_TOKEN_PATH", CU_DATA_PATH."json" ); // 重新定义路径即可覆盖授权文件
}

require CU_CLASS_PATH."CU.class.php";
Copy after login

                                   

2. [文件]     jipiao-sdk.zip ~ 343KB    

携程基票 sdkjipiao-sdk.zip

         

                                       


                   

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template