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
f044f0e8
Commit
f044f0e8
authored
Jul 05, 2017
by
lee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.oschina.net:kollway-kollway/newcemarose
parents
5ae12c6c
636557cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
KWMAPIManager.m
iCemarose/Class/Api/KWMAPIManager.m
+5
-5
Header-Prefix.h
iCemarose/Header-Prefix.h
+4
-0
No files found.
iCemarose/Class/Api/KWMAPIManager.m
View file @
f044f0e8
...
@@ -791,7 +791,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -791,7 +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
=
[
NSString
stringWithFormat
:
@"https://%@/wechatpay/app/unified_order"
,
Additional
_API_DOMAIN
];
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/wechatpay/app/unified_order"
,
Pay
_API_DOMAIN
];
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
apiPath
:
apiPath
apiPath
:
apiPath
parameters
:
parameters
parameters
:
parameters
...
@@ -816,7 +816,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -816,7 +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
=
[
NSString
stringWithFormat
:
@"https://%@/alipay/app/unified_order"
,
Additional
_API_DOMAIN
];
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/alipay/app/unified_order"
,
Pay
_API_DOMAIN
];
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
apiPath
:
apiPath
apiPath
:
apiPath
parameters
:
parameters
parameters
:
parameters
...
@@ -829,7 +829,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -829,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
=
[
NSString
stringWithFormat
:
@"https://%@/wechatpay/order/query"
,
Additional
_API_DOMAIN
];
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/wechatpay/order/query"
,
Pay
_API_DOMAIN
];
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
apiPath
:
apiPath
apiPath
:
apiPath
...
@@ -843,7 +843,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -843,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
=
[
NSString
stringWithFormat
:
@"https://%@/alipay/order/query"
,
Additional
_API_DOMAIN
];
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/alipay/order/query"
,
Pay
_API_DOMAIN
];
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
apiPath
:
apiPath
apiPath
:
apiPath
...
@@ -867,7 +867,7 @@ static NSString *const passwordTest = @"9e84aae218c57cdf0762763c4cf5a651";
...
@@ -867,7 +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
=
[
NSString
stringWithFormat
:
@"https://%@/app/order/query"
,
Additional_API_DOMAIN
];
NSString
*
apiPath
=
[
NSString
stringWithFormat
:
@"https://%@/app/order/query"
,
Pay_API_DOMAIN
];
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
return
[
self
startSessionTask
:
KWMHTTPMethodPOST
apiPath
:
apiPath
apiPath
:
apiPath
parameters
:
parameters
parameters
:
parameters
...
...
iCemarose/Header-Prefix.h
View file @
f044f0e8
...
@@ -67,6 +67,8 @@
...
@@ -67,6 +67,8 @@
//额外api domain
//额外api domain
#define Additional_API_DOMAIN @"liang.tofnews.com"
#define Additional_API_DOMAIN @"liang.tofnews.com"
#define Pay_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"
...
@@ -79,6 +81,8 @@
...
@@ -79,6 +81,8 @@
#define Additional_API_DOMAIN @"apps.cemarose.com"
#define Additional_API_DOMAIN @"apps.cemarose.com"
#define Pay_API_DOMAIN @"alipay.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