Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckFarm
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
LuckFarm
Commits
c8928867
Commit
c8928867
authored
Oct 23, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DrawOrder
parent
8c5e4cba
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
27 deletions
+21
-27
GYOrderAlertView.m
GYDemo/GYDemo/Alert/GYOrderAlertView.m
+0
-21
AppDelegate.mm
GYDemo/GYDemo/AppDelegate.mm
+15
-0
GYPrefixHeader.pch
GYDemo/GYDemo/GYPrefixHeader.pch
+6
-6
No files found.
GYDemo/GYDemo/Alert/GYOrderAlertView.m
View file @
c8928867
...
...
@@ -72,27 +72,6 @@
[
super
layoutSubviews
];
}
-
(
void
)
refreshDataSource
{
[[
CGNetworkTools
shared
]
getWithAction
:
getOrderInfo
parameters
:@{}
success
:^
(
id
_Nonnull
response
)
{
NSDictionary
*
orderDic
=
[[
response
objectForKey
:
@"result"
]
objectForKey
:
@"data"
];
GYOrderInfoModel
*
model
=
[[
GYOrderInfoModel
alloc
]
init
];
[
model
setValuesForKeysWithDictionary
:
orderDic
];
model
.
orderDetailModels
=
[
NSMutableArray
new
];
for
(
NSDictionary
*
dic
in
model
.
farmOrderDataList
){
GYOrderDetailsModel
*
detailsModel
=
[[
GYOrderDetailsModel
alloc
]
init
];
[
detailsModel
setValuesForKeysWithDictionary
:
dic
];
[
model
.
orderDetailModels
addObject
:
detailsModel
];
}
self
.
model
=
model
;
}
failure
:^
(
NSError
*
_Nonnull
error
)
{
}];
}
-
(
IBAction
)
cancelBtn
:
(
UIButton
*
)
sender
{
[
self
dismiss
];
}
...
...
GYDemo/GYDemo/AppDelegate.mm
View file @
c8928867
...
...
@@ -131,6 +131,9 @@ NSDictionary* appLaunchOpts;
[[[self ufw] appController].window addSubview:order];
[order show:nil];
Data * data = [[Data alloc] init];
[data WirteDic:[NSString stringWithFormat:@"%ld", (long)model.status] Key:@"OrderStatus"];
} failure:^(NSError * _Nonnull error) {
}];
...
...
@@ -333,6 +336,12 @@ NSDictionary* appLaunchOpts;
NSData *data = [NSJSONSerialization dataWithJSONObject:[[response objectForKey:@"result"] objectForKey:@"data"] options:NSJSONWritingFragmentsAllowed error:nil];
NSString * jsonStr = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
[[self ufw] sendMessageToGOWithName: "GameManager" functionName: "onOrderListSuccess" message: [jsonStr UTF8String]];
GYOrderInfoModel * model = [[GYOrderInfoModel alloc] init];
[model setValuesForKeysWithDictionary:[[response objectForKey:@"result"] objectForKey:@"data"]];
Data * dataPlist = [[Data alloc] init];
[dataPlist WirteDic:[NSString stringWithFormat:@"%ld", (long)model.status] Key:@"OrderStatus"];
}
} failure:^(NSError * _Nonnull error) {
...
...
@@ -341,6 +350,12 @@ NSDictionary* appLaunchOpts;
// 订单领取
- (void)ios_getOrderReceive {
Data * dataPlist = [[Data alloc] init];
if (![[[dataPlist Read] objectForKey:@"OrderStatus"] isEqualToString:@"1"]) {
return;
}
[[CGNetworkTools shared] postWithAction:DrawOrder parameters:@{} success:^(id _Nonnull response) {
if ([[response objectForKey:@"status"] integerValue] == 200) {
NSData *data = [NSJSONSerialization dataWithJSONObject:[[response objectForKey:@"result"] objectForKey:@"data"] options:NSJSONWritingFragmentsAllowed error:nil];
...
...
GYDemo/GYDemo/GYPrefixHeader.pch
View file @
c8928867
...
...
@@ -14,14 +14,14 @@
#ifndef GYPrefixHeader_pch
#define GYPrefixHeader_pch
#define ServerReport @"http://reporttest.zhangxinhulian.com"
#define ServerHost @"https://feedapitest.zhangxinhulian.com" // 服务端接口地址
#define ServerAds @"https://bs.zhangxinhulian.com/v3/ads"
//#define ServerReport @"http://report.zhangxinhulian.com"
//#define ServerHost @"https://feedapi.zhangxinhulian.com" // 服务端接口地址
//#define ServerReport @"http://reporttest.zhangxinhulian.com"
//#define ServerHost @"https://feedapitest.zhangxinhulian.com" // 服务端接口地址
//#define ServerAds @"https://bs.zhangxinhulian.com/v3/ads"
#define ServerReport @"http://feedapi.clouddistribute.net"
#define ServerHost @"https://feedapi.clouddistribute.net" // 服务端接口地址
#define ServerAds @"https://bs.zhangxinhulian.com/v3/ads"
#define saltA @"HXHJ4KDL1QPFHGA0" // md5盐值
#define saltB @"ZJQJQ66AH9COTXSU"
...
...
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