Header-Prefix.h 4.44 KB
//
//  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>
#import "NSDecimalNumber+Currency.h"
#import "UIViewController+HTTP.h"
#import <RXCollections/RXCollection.h>
#import <RegexKitLite/RegexKitLite.h>
#import "NSString+Format.h"

#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)
#define SYSTEM_VERSION_LESS_THAN(v)                 ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define KWMTextTips    0
#define KWMNoDataTips  1
#define KWMNoLike      2
#define KWMNoComment   3
#define KWMNoFans      4
#define KWMNoNework    5
#define KWMLoadFailure 6
#define KWMNoCollect   7



#define KWMReceiverPush                     @"KWMReceiverPush"
#define KWMReceiverNoLogin                  @"KWMReceiverNoLogin"
#define KWMPaySuccess             @"KWMPaySuccess"
#define KEY_USER_DEFAULT_ACCOUNT                  @"KEY_USER_DEFAULT_ACCOUNT"
#define KEY_USER_REGISTER                   @"KEY_USER_REGISTER"

#define UMAppKey @"##"
#define UmengChannel            @"C001"

#define JPUSHKey @"##"

//正式的 QQ app id
#define QQAppId @"##"
#define QQAppKey @"##"

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

#define Order_API_Auth @"Basic YzJmNmZhZTk3NzQxZWE2ZGI0Y2FkN2FlOGY3MGZlZjM=="

#define Moncler_Vendor_Auth @"Basic YWRlMDgzZGU2YWJjYjljYjk0ODY5NDg1ZWUwZGQyNmE6MWYyYzVlM2I4N2YyZGJlMTkwZGEzMzU4NmMyMmY3YzQ="

//正式的微信key
#define WechatAppKey               @"wx355a497b2a2dd6d5"

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

#define User_Pay_KEY @"bd3f58f5cd3d7a217ac8c8e655ab52f8"

#if DEBUG && 0
//测试
#define TestModel @"YES"

//额外api domain
//#define Additional_API_DOMAIN @"liang.tofnews.com"

#define WishList_API_DOMAIN @"test.cemarose.com"

#define Pay_API_DOMAIN @"liang.tofnews.com"
// Chris Test
#define Pay_API_DOMAIN @"chris.tofnews.com"

//Shopify对应的key(测试用)
#define Shopify_SHOP_DOMAIN @"cemarose-test.myshopify.com"

#define Shopify_API_KEY @"4f34b3c32f4297386fc4fdaee7ef2bce"
#define Shopify_APP_ID @"8"
#else

//正式
#define TestModel @"NO"

//#define Additional_API_DOMAIN @"apps.cemarose.com"

#define WishList_API_DOMAIN @"apps.cemarose.com"

// Production
#define Pay_API_DOMAIN @"alipay.cemarose.com"


//Shopify对应的key(正式)
#define Shopify_SHOP_DOMAIN @"cemarose.myshopify.com"
#define Shopify_API_KEY @"c2f6fae97741ea6db4cad7ae8f70fef3"
#define Shopify_APP_ID @"8"
#endif

//软键盘输入限制
#define NUM @"0123456789"
#define ALPHA @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
#define ALPHANUM @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"

#define Image_Domain @"o42yton8r.qnssl.com"

#define LowImage 0

#define SmallImage 1

#define NormalImage 2

#define BigImage 3

//collection all的id
#define Collection_All_ID 191372166

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

//品牌图片url
#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"

#endif /* Header_Prefix_h */