api_init.php 728 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: zhima
  5. * Date: 2018/7/3
  6. * Time: 下午4:30
  7. */
  8. /**
  9. * api_init.php API初始化文件
  10. *
  11. * @version v0.01
  12. * @create time 2016/5/22
  13. * @update time
  14. * @author jt
  15. * @copyright Copyright (c) 微普科技 WiiPu Tech Inc. (http://www.wiipu.com)
  16. */
  17. require_once('../../init.php');
  18. //加载API相关类
  19. require($API_LIB_PATH.'api.class.php');
  20. //API相关的设置(WiiPHP下也可以放setting.inc.php中)
  21. $Array_API_Source = array(
  22. 1 => 'weixin',
  23. 2 => 'android',
  24. 3 => 'ios',
  25. 99 => 'test'
  26. );
  27. //调用接口的IP白名单
  28. $Array_API_IP_WhiteList = array(
  29. '127.0.0.1',
  30. );
  31. $secret = array(
  32. "2"=>"boiler_android",
  33. "3"=>"boiler_ios",
  34. );