123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // ZYLNetworkConfig.h
- // NetworkLayerBuild
- //
- // Created by 翟玉磊 on 2017/8/31.
- // Copyright © 2017年 翟玉磊. All rights reserved.
- //
- #ifndef ZYLNetworkConfig_h
- #define ZYLNetworkConfig_h
- //接口环境选择
- typedef enum : NSUInteger {
- ZYLServiceEnvironmentTest = 0,
- ZYLServiceEnvironmentDevelop,
- ZYLServiceEnvironmentRelease,
- ZYLServiceEnvironmentTestGy, //127.xxx、192.168.x.x
- } ZYLServiceEnvironment;
- /// 3:127.xxx、192.168.x.x 2:预发 1:测试 0:正式
- #if IS_DEBUG == 0
- #define BuildServiceEnvironment ZYLServiceEnvironmentRelease
- #elif IS_DEBUG == 1
- #define BuildServiceEnvironment ZYLServiceEnvironmentTest
- #elif IS_DEBUG == 2
- #define BuildServiceEnvironment ZYLServiceEnvironmentDevelop
- #else
- #define BuildServiceEnvironment ZYLServiceEnvironmentTestGy
- #endif
- //请求方式
- typedef enum : NSUInteger {
- ZYLNetworkRequestTypeGet,
- ZYLNetworkRequestTypePost,
- } ZYLNetworkRequestType;
- #define RequestTimeoutInterval 15 //默认请求超时时间
- #endif /* ZYLNetworkConfig_h */
|