Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ALand
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
ALand
Commits
01c2a5f6
Commit
01c2a5f6
authored
Jun 01, 2016
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加测试类
parent
e7fb6b51
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
4 deletions
+67
-4
project.pbxproj
ALand.xcodeproj/project.pbxproj
+6
-0
OrderDetailTopView.m
ALand/CodeClass/Home/View/Order/OrderDetailTopView.m
+1
-1
NSString+Category.h
ALand/General/Categories/NSString+Category.h
+1
-0
JV_TestTool.h
ALand/General/JV_TestTool.h
+17
-0
JV_TestTool.m
ALand/General/JV_TestTool.m
+30
-0
HTTPCilent.m
ALand/Global/HTTPCilent.m
+11
-3
IMPHeader.h
ALand/Macro/IMPHeader.h
+1
-0
No files found.
ALand.xcodeproj/project.pbxproj
View file @
01c2a5f6
...
...
@@ -158,6 +158,7 @@
19632DAE1CB38FFC0024A8A1
/* HTTPCilent.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
19632DAD1CB38FFC0024A8A1
/* HTTPCilent.m */
;
};
19632DB11CB39B190024A8A1
/* SelectPhotoView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
19632DB01CB39B190024A8A1
/* SelectPhotoView.m */
;
};
19632DB31CB39B250024A8A1
/* SelectPhotoView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
19632DB21CB39B250024A8A1
/* SelectPhotoView.xib */
;
};
196716FA1CFD384F00999267
/* JV_TestTool.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
196716F91CFD384F00999267
/* JV_TestTool.m */
;
};
196944DC1CEC4E6C0036E574
/* NoBillHistoryView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
196944DB1CEC4E6C0036E574
/* NoBillHistoryView.m */
;
};
196944DE1CEC4E780036E574
/* NoBillHistoryView.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
196944DD1CEC4E780036E574
/* NoBillHistoryView.xib */
;
};
196944E11CEC75FA0036E574
/* JavenAdModel.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
196944E01CEC75FA0036E574
/* JavenAdModel.m */
;
};
...
...
@@ -617,6 +618,8 @@
19632DAF1CB39B190024A8A1
/* SelectPhotoView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
SelectPhotoView.h
;
path
=
../SelectPhotoView.h
;
sourceTree
=
"<group>"
;
};
19632DB01CB39B190024A8A1
/* SelectPhotoView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
SelectPhotoView.m
;
path
=
../SelectPhotoView.m
;
sourceTree
=
"<group>"
;
};
19632DB21CB39B250024A8A1
/* SelectPhotoView.xib */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.xib
;
name
=
SelectPhotoView.xib
;
path
=
../SelectPhotoView.xib
;
sourceTree
=
"<group>"
;
};
196716F81CFD384F00999267
/* JV_TestTool.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
JV_TestTool.h
;
sourceTree
=
"<group>"
;
};
196716F91CFD384F00999267
/* JV_TestTool.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
JV_TestTool.m
;
sourceTree
=
"<group>"
;
};
196944DA1CEC4E6C0036E574
/* NoBillHistoryView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
NoBillHistoryView.h
;
sourceTree
=
"<group>"
;
};
196944DB1CEC4E6C0036E574
/* NoBillHistoryView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
NoBillHistoryView.m
;
sourceTree
=
"<group>"
;
};
196944DD1CEC4E780036E574
/* NoBillHistoryView.xib */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
file.xib
;
path
=
NoBillHistoryView.xib
;
sourceTree
=
"<group>"
;
};
...
...
@@ -2101,6 +2104,8 @@
19DCCBB41C9AA0450072C3BF
/* ICRPlaceholderTextView.m */
,
19DCCBB51C9AA0450072C3BF
/* JTOptions */
,
19DCCBBC1C9AA0450072C3BF
/* Views */
,
196716F81CFD384F00999267
/* JV_TestTool.h */
,
196716F91CFD384F00999267
/* JV_TestTool.m */
,
);
path
=
General
;
sourceTree
=
"<group>"
;
...
...
@@ -2723,6 +2728,7 @@
1929401F1CC8DA5B00E377EE
/* InvitePartnerViewController.m in Sources */
,
192900961CD20A5200D226E7
/* CustomerTopView.m in Sources */
,
194FB0B01CE2E95B0089A3D5
/* UserInfoLastModifyInfo.m in Sources */
,
196716FA1CFD384F00999267
/* JV_TestTool.m in Sources */
,
194FB0CA1CE2F8E20089A3D5
/* JavenReferrer.m in Sources */
,
194FB0AA1CE2E95B0089A3D5
/* UserInfoAddress.m in Sources */
,
19632DA81CB356050024A8A1
/* UIImage+QRCode.m in Sources */
,
...
...
ALand/CodeClass/Home/View/Order/OrderDetailTopView.m
View file @
01c2a5f6
...
...
@@ -40,7 +40,7 @@
self
.
labelName
.
text
=
model
.
address
.
name
;
JavenAddress
*
address
=
model
.
address
;
self
.
labelAddress
.
text
=
[
NSString
stringWithFormat
:
@"%@%@%@%@%@"
,
address
.
nation
?
address
.
nation
:
@""
,
address
.
province
,
address
.
city
,
address
.
country
,
address
.
address
];
self
.
labelPhoneNumber
.
text
=
model
.
consumer
.
cod
e
;
self
.
labelPhoneNumber
.
text
=
model
.
consumer
.
mobilephon
e
;
self
.
labelExpressTime
.
text
=
model
.
lastModifyInfo
.
time
;
WS
(
weakSelf
)
[[
HTTPCilent
shareCilent
]
GET
:[
NSString
stringWithFormat
:
@"order/getLogistics/%@"
,
model
.
uuid
]
parameters
:
nil
success
:^
(
NSURLSessionDataTask
*
task
,
id
responseObject
)
{
...
...
ALand/General/Categories/NSString+Category.h
View file @
01c2a5f6
...
...
@@ -9,6 +9,7 @@
#import <Foundation/Foundation.h>
@interface
NSString
(
Category
)
+
(
NSString
*
)
randomTestText
;
/**
* 手机号码的有效性:分电信、联通、移动和小灵通
...
...
ALand/General/JV_TestTool.h
0 → 100644
View file @
01c2a5f6
//
// JV_TestTool.h
// ALand
//
// Created by Z on 16/5/31.
// Copyright © 2016年 Z. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface
JV_TestTool
:
NSObject
+
(
NSString
*
)
randomTestText
;
+
(
BOOL
)
randomBool
;
@end
ALand/General/JV_TestTool.m
0 → 100644
View file @
01c2a5f6
//
// JV_TestTool.m
// ALand
//
// Created by Z on 16/5/31.
// Copyright © 2016年 Z. All rights reserved.
//
#import "JV_TestTool.h"
@implementation
JV_TestTool
+
(
NSString
*
)
randomTestText
{
//NSString *str = @"长短不一的测试数据";
NSMutableString
*
result
=
[
NSMutableString
string
];
int
randomNumber
=
arc4random
()
%
10
+
1
;
for
(
int
i
=
0
;
i
<
randomNumber
;
i
++
)
{
[
result
appendString
:
@"长短不一的测试数据~"
];
}
return
result
;
}
+
(
BOOL
)
randomBool
{
int
randomNomber
=
arc4random
()
%
2
;
return
randomNomber
==
0
;
}
@end
ALand/Global/HTTPCilent.m
View file @
01c2a5f6
...
...
@@ -38,7 +38,8 @@
-
(
void
)
POST
:
(
NSString
*
)
URLString
parameters
:
(
id
)
parameters
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
id
responseObject
))
success
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
[
self
.
manager
POST
:
URLString
parameters
:
parameters
progress
:^
(
NSProgress
*
_Nonnull
uploadProgress
)
{
}
success
:^
(
NSURLSessionDataTask
*
_Nonnull
task
,
id
_Nullable
responseObject
)
{
...
...
@@ -63,7 +64,8 @@
-
(
void
)
GET
:
(
NSString
*
)
URLString
parameters
:
(
id
)
parameters
success
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
id
responseObject
))
success
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
failure
:
(
void
(
^
)(
NSURLSessionDataTask
*
task
,
NSError
*
error
))
failure
{
[
self
.
manager
GET
:
URLString
parameters
:
parameters
progress
:^
(
NSProgress
*
_Nonnull
downloadProgress
)
{
}
success
:^
(
NSURLSessionDataTask
*
_Nonnull
task
,
id
_Nullable
responseObject
)
{
...
...
@@ -101,6 +103,12 @@
NSString
*
lastestVersion
=
dic
[
@"version"
];
BOOL
isForceUpdate
=
[
dic
[
@"forceUpdate"
]
boolValue
];
#ifdef DEBUG
lastestVersion
=
@"2.0.1"
;
isForceUpdate
=
[
JV_TestTool
randomBool
];
#else
#endif
NSArray
*
arrVersion
=
[
version
componentsSeparatedByString
:
@"."
];
NSArray
*
arrLatestVersion
=
[
lastestVersion
componentsSeparatedByString
:
@"."
];
...
...
@@ -124,7 +132,7 @@
}
}
for
(
int
i
=
1
;
i
<
3
;
i
++
)
{
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
if
(
!
[
arrVersion
[
i
]
isEqualToString
:
arrLatestVersion
[
i
]])
{
CLog
(
@"小版本号有更新"
);
UIAlertController
*
alert
=
[
UIAlertController
alertControllerWithTitle
:
@"提示"
message
:
@"已经有新版本可以下载了哟!"
preferredStyle
:
UIAlertControllerStyleAlert
];
...
...
ALand/Macro/IMPHeader.h
View file @
01c2a5f6
...
...
@@ -24,5 +24,6 @@
#import "JavenQNManager.h"
#import "MobClick.h"
#import "NSString+OrderState.h"
#import "JV_TestTool.h"
#endif
/* IMPHeader_h */
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