Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ios1x
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
ios1x
Commits
73874a8f
Commit
73874a8f
authored
Jun 30, 2017
by
houweibin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1,API demain更换
parent
ec4f5a83
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
KWMAPIManager.m
iCemarose/Class/Api/KWMAPIManager.m
+6
-13
Header-Prefix.h
iCemarose/Header-Prefix.h
+5
-0
No files found.
iCemarose/Class/Api/KWMAPIManager.m
View file @
73874a8f
...
@@ -677,11 +677,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -677,11 +677,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
-
(
NSURLSessionDataTask
*
)
getExchangeRate
:
(
NSDictionary
*
)
parameters
-
(
NSURLSessionDataTask
*
)
getExchangeRate
:
(
NSDictionary
*
)
parameters
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMExchangeRateResult
*
result
))
success
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMExchangeRateResult
*
result
))
success
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
#if DEBUG
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/app/exchange/rate"
,
Additional_API_DOMAIN
];
NSString
*
apiPath
=
@"https://liang.tofnews.com/app/exchange/rate"
;
#else
NSString
*
apiPath
=
@"https://apps.cemarose.com/app/exchange/rate"
;
#endif
// NSString *sign = [KWMStringUtil MD5:[KWMStringUtil BASE64:@"currency=EUR&key=bd3f58f5cd3d7a217ac8c8e655ab52f8"]];
// NSString *sign = [KWMStringUtil MD5:[KWMStringUtil BASE64:@"currency=EUR&key=bd3f58f5cd3d7a217ac8c8e655ab52f8"]];
// NSLog(@"rate sign: %@",sign);
// NSLog(@"rate sign: %@",sign);
// NSDictionary *params = @{@"currency":@"EUR",@"sign":sign};
// NSDictionary *params = @{@"currency":@"EUR",@"sign":sign};
...
@@ -795,8 +791,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -795,8 +791,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
-
(
NSURLSessionDataTask
*
)
wechatPayUnifiedOrder
:
(
NSDictionary
*
)
parameters
-
(
NSURLSessionDataTask
*
)
wechatPayUnifiedOrder
:
(
NSDictionary
*
)
parameters
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMCheckoutPayResult
*
result
))
success
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMCheckoutPayResult
*
result
))
success
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
NSString
*
apiPath
=
@"https://liang.tofnews.com/wechatpay/app/unified_order"
;
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/wechatpay/app/unified_order"
,
Additional_API_DOMAIN
];
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
apiPath
:
apiPath
apiPath
:
apiPath
parameters
:
parameters
parameters
:
parameters
...
@@ -821,8 +816,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -821,8 +816,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
-
(
NSURLSessionDataTask
*
)
aliPayUnifiedOrder
:
(
NSDictionary
*
)
parameters
-
(
NSURLSessionDataTask
*
)
aliPayUnifiedOrder
:
(
NSDictionary
*
)
parameters
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMCheckoutPayResult
*
result
))
success
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMCheckoutPayResult
*
result
))
success
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
NSString
*
apiPath
=
@"https://liang.tofnews.com/alipay/app/unified_order"
;
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/alipay/app/unified_order"
,
Additional_API_DOMAIN
];
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
apiPath
:
apiPath
apiPath
:
apiPath
parameters
:
parameters
parameters
:
parameters
...
@@ -835,7 +829,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -835,7 +829,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
-
(
NSURLSessionDataTask
*
)
wechatPayOrderQuery
:
(
NSDictionary
*
)
parameters
-
(
NSURLSessionDataTask
*
)
wechatPayOrderQuery
:
(
NSDictionary
*
)
parameters
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMCheckoutPayResult
*
result
))
success
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMCheckoutPayResult
*
result
))
success
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
NSString
*
apiPath
=
@"https://liang.tofnews.com/wechatpay/order/query"
;
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/wechatpay/order/query"
,
Additional_API_DOMAIN
]
;
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
apiPath
:
apiPath
apiPath
:
apiPath
...
@@ -849,7 +843,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -849,7 +843,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
-
(
NSURLSessionDataTask
*
)
aliPayOrderQuery
:
(
NSDictionary
*
)
parameters
-
(
NSURLSessionDataTask
*
)
aliPayOrderQuery
:
(
NSDictionary
*
)
parameters
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMCheckoutPayResult
*
result
))
success
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMCheckoutPayResult
*
result
))
success
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
NSString
*
apiPath
=
@"https://liang.tofnews.com/alipay/order/query"
;
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/alipay/order/query"
,
Additional_API_DOMAIN
]
;
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
apiPath
:
apiPath
apiPath
:
apiPath
...
@@ -873,8 +867,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -873,8 +867,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
-
(
NSURLSessionDataTask
*
)
appOrderQuery
:
(
NSDictionary
*
)
parameters
-
(
NSURLSessionDataTask
*
)
appOrderQuery
:
(
NSDictionary
*
)
parameters
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMCheckoutPayResult
*
result
))
success
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
KWMCheckoutPayResult
*
result
))
success
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
NSString
*
apiPath
=
@"https://liang.tofnews.com/app/order/query"
;
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/app/order/query"
,
Additional_API_DOMAIN
];
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
apiPath
:
apiPath
apiPath
:
apiPath
parameters
:
parameters
parameters
:
parameters
...
...
iCemarose/Header-Prefix.h
View file @
73874a8f
...
@@ -64,6 +64,9 @@
...
@@ -64,6 +64,9 @@
//测试
//测试
#define TestModel @"YES"
#define TestModel @"YES"
//额外api domain
#define Additional_API_DOMAIN @"liang.tofnews.com"
//Shopify对应的key(测试用)
//Shopify对应的key(测试用)
#define Shopify_SHOP_DOMAIN @"cemarose-test.myshopify.com"
#define Shopify_SHOP_DOMAIN @"cemarose-test.myshopify.com"
...
@@ -74,6 +77,8 @@
...
@@ -74,6 +77,8 @@
//正式
//正式
#define TestModel @"NO"
#define TestModel @"NO"
#define Additional_API_DOMAIN @"apps.cemarose.com"
//Shopify对应的key(正式)
//Shopify对应的key(正式)
#define Shopify_SHOP_DOMAIN @"cemarose.myshopify.com"
#define Shopify_SHOP_DOMAIN @"cemarose.myshopify.com"
#define Shopify_API_KEY @"c2f6fae97741ea6db4cad7ae8f70fef3"
#define Shopify_API_KEY @"c2f6fae97741ea6db4cad7ae8f70fef3"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment