Header-Prefix.h 4.24 KB
Newer Older
houweibin committed
1 2 3 4 5 6 7 8 9 10 11 12
//
//  Header-Prefix.h
//  iToYoung
//
//  Created by jason on 16/5/9.
//  Copyright © 2016年 kollway. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "KWMAPIManager.h"
#import <MagicalRecord/MagicalRecord.h>
lee committed
13
#import "NSDecimalNumber+Currency.h"
lee committed
14
#import "UIViewController+HTTP.h"
u  
lee committed
15
#import <RXCollections/RXCollection.h>
lee committed
16
#import <RegexKitLite/RegexKitLite.h>
17
#import "NSString+Format.h"
houweibin committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31

#ifndef Header_Prefix_h
#define Header_Prefix_h

#define BASE_COLOR [UIColor colorWithRed:255/255.0f green:96/255.0f blue:67/255.0f alpha:1]
#define LINE_COLOR [UIColor colorWithRed:217/255.0f green:217/255.0f blue:217/255.0f alpha:1]
#define IMAGE_SIZE_UPLOAD          800
#define USER_PHOTO_SIZE                 300
#define USER_PHOTO_HEIGHT_SIZE          200
#define UPLOAD_PHOTO_SIZE               600
#define UI_SCREEN_WIDTH             ([[UIScreen mainScreen] bounds].size.width)
#define UI_SCREEN_HEITHT            ([[UIScreen mainScreen] bounds].size.height)
#define KWMAPI_URL(path) [NSURL URLWithString:[[KWMAPIManager sharedManager] toAbsoluteUrl:path]]
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
houweibin committed
32
#define SYSTEM_VERSION_LESS_THAN(v)                 ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
houweibin committed
33 34 35 36 37 38 39 40 41 42
#define KWMTextTips    0
#define KWMNoDataTips  1
#define KWMNoLike      2
#define KWMNoComment   3
#define KWMNoFans      4
#define KWMNoNework    5
#define KWMLoadFailure 6
#define KWMNoCollect   7


43

houweibin committed
44 45
#define KWMReceiverPush                     @"KWMReceiverPush"
#define KWMReceiverNoLogin                  @"KWMReceiverNoLogin"
46
#define KWMPaySuccess             @"KWMPaySuccess"
houweibin committed
47 48 49
#define KEY_USER_DEFAULT_ACCOUNT                  @"KEY_USER_DEFAULT_ACCOUNT"
#define KEY_USER_REGISTER                   @"KEY_USER_REGISTER"

50
#define UMAppKey @"##"
houweibin committed
51 52
#define UmengChannel            @"C001"

53
#define JPUSHKey @"##"
houweibin committed
54 55

//正式的 QQ app id
56 57
#define QQAppId @"##"
#define QQAppKey @"##"
houweibin committed
58

59 60
#define NO_MORE_DATA @"------ 沒有啦 ------"

houweibin committed
61 62 63 64 65 66
//正式的微信key
#define WechatAppKey               @"wx355a497b2a2dd6d5"

//Cemarose key--chinese login 需要的key
#define Cemarose_KEY @"4a119ac523d53c98bbd2983b798a0d53"

67
#define User_Pay_KEY @"bd3f58f5cd3d7a217ac8c8e655ab52f8"
houweibin committed
68

lee committed
69
#if DEBUG && 0
houweibin committed
70 71
//测试
#define TestModel @"YES"
houweibin committed
72

houweibin committed
73
//额外api domain
lee committed
74
//#define Additional_API_DOMAIN @"liang.tofnews.com"
houweibin committed
75

houweibin committed
76 77
#define WishList_API_DOMAIN @"test.cemarose.com"

houweibin committed
78
#define Pay_API_DOMAIN @"liang.tofnews.com"
lee committed
79 80
// Chris Test
#define Pay_API_DOMAIN @"chris.tofnews.com"
houweibin committed
81

houweibin committed
82 83
//Shopify对应的key(测试用)
#define Shopify_SHOP_DOMAIN @"cemarose-test.myshopify.com"
lee committed
84

houweibin committed
85
#define Shopify_API_KEY @"4f34b3c32f4297386fc4fdaee7ef2bce"
houweibin committed
86
#define Shopify_APP_ID @"8"
lee committed
87
#else
houweibin committed
88

lee committed
89 90 91
//正式
#define TestModel @"NO"

lee committed
92
//#define Additional_API_DOMAIN @"apps.cemarose.com"
houweibin committed
93

houweibin committed
94 95
#define WishList_API_DOMAIN @"apps.cemarose.com"

lee committed
96
// Production
lee committed
97
#define Pay_API_DOMAIN @"alipay.cemarose.com"
lee committed
98

houweibin committed
99

lee committed
100 101 102 103
//Shopify对应的key(正式)
#define Shopify_SHOP_DOMAIN @"cemarose.myshopify.com"
#define Shopify_API_KEY @"c2f6fae97741ea6db4cad7ae8f70fef3"
#define Shopify_APP_ID @"8"
u  
lee committed
104
#endif
houweibin committed
105

houweibin committed
106 107 108 109 110
//软键盘输入限制
#define NUM @"0123456789"
#define ALPHA @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
#define ALPHANUM @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"

houweibin committed
111 112 113
#define Image_Domain @"o42yton8r.qnssl.com"

#define LowImage 0
houweibin committed
114 115 116 117 118 119 120

#define SmallImage 1

#define NormalImage 2

#define BigImage 3

houweibin committed
121 122 123
//collection all的id
#define Collection_All_ID 191372166

houweibin committed
124
//默认欧元汇率,如果安装后第一次请求最新汇率数据失败,会使用该汇率显示价格
lee committed
125
//#define ExchangeRate 7.6625
lee committed
126 127
//#define ExchangeRateString @"7.6625"
#define ExchangeRateString @"8.0"
houweibin committed
128 129

//品牌图片url
u  
lee committed
130 131 132 133 134 135 136
#define Burberry @"https://ogbgohpla.qnssl.com/Brands_BUBBERY.jpg"
#define Caramel @"https://ogbgohpla.qnssl.com/Brands_CARAMEL.jpg"
#define DolceGabbana @"https://ogbgohpla.qnssl.com/Brands_DG.jpg"
#define Fendi @"https://ogbgohpla.qnssl.com/Brands_fendi.jpg"
#define Kenzo @"https://ogbgohpla.qnssl.com/Brands_KENZO.jpg"
#define IlGufo @"https://ogbgohpla.qnssl.com/Brands_ILGUFO.jpg"
#define StellaMcCartneyKids @"https://ogbgohpla.qnssl.com/Brands_stella.jpg"
houweibin committed
137 138

#endif /* Header_Prefix_h */