Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Car-iOS
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
张杰
Car-iOS
Commits
40aa3b8c
Commit
40aa3b8c
authored
Jan 13, 2017
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.1版本
parent
a5d543c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
+22
-9
Car Release.plist
Car Release.plist
+2
-2
Main.storyboard
Car/Base.lproj/Main.storyboard
+12
-4
HttpCilent.m
Car/tools/HttpCilent.m
+8
-3
No files found.
Car Release.plist
View file @
40aa3b8c
...
...
@@ -17,9 +17,9 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.0.
0
<
/string
>
<
string
>
1.0.
1
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.0.
0
<
/string
>
<
string
>
1.0.
1
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSAppTransportSecurity
<
/k
e
y
>
...
...
Car/Base.lproj/Main.storyboard
View file @
40aa3b8c
...
...
@@ -2003,8 +2003,8 @@
<action
selector=
"actionLogin:"
destination=
"lBd-bF-h84"
eventType=
"touchUpInside"
id=
"Wch-vx-zMv"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"即将登录智能手表车族通
请确认是本人登录
"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
numberOfLines=
"3"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OEh-I3-0VX"
>
<rect
key=
"frame"
x=
"
80"
y=
"120"
width=
"21
5"
height=
"20.5"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"即将登录智能手表车族通"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
numberOfLines=
"3"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"OEh-I3-0VX"
>
<rect
key=
"frame"
x=
"
60"
y=
"120"
width=
"25
5"
height=
"20.5"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.39995324609999999"
green=
"0.40002685789999998"
blue=
"0.39994865660000001"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -2029,18 +2029,26 @@
<action
selector=
"actionCancel:"
destination=
"lBd-bF-h84"
eventType=
"touchUpInside"
id=
"Zfi-aL-myt"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"请确认是本人登录"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
numberOfLines=
"3"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"X2c-SV-S4c"
>
<rect
key=
"frame"
x=
"118"
y=
"148"
width=
"139"
height=
"21"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.39995324609999999"
green=
"0.40002685789999998"
blue=
"0.39994865660000001"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstItem=
"Ama-4z-KkS"
firstAttribute=
"leading"
secondItem=
"RHs-jJ-JoQ"
secondAttribute=
"leading"
constant=
"20"
id=
"1H9-R2-sr2"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"OEh-I3-0VX"
secondAttribute=
"trailing"
constant=
"
8
0"
id=
"AVL-sh-hq5"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"OEh-I3-0VX"
secondAttribute=
"trailing"
constant=
"
6
0"
id=
"AVL-sh-hq5"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Xep-hC-1Qc"
secondAttribute=
"trailing"
constant=
"20"
id=
"GIZ-ls-VGJ"
/>
<constraint
firstItem=
"OEh-I3-0VX"
firstAttribute=
"leading"
secondItem=
"RHs-jJ-JoQ"
secondAttribute=
"leading"
constant=
"
8
0"
id=
"RUw-ws-399"
/>
<constraint
firstItem=
"OEh-I3-0VX"
firstAttribute=
"leading"
secondItem=
"RHs-jJ-JoQ"
secondAttribute=
"leading"
constant=
"
6
0"
id=
"RUw-ws-399"
/>
<constraint
firstItem=
"OEh-I3-0VX"
firstAttribute=
"top"
secondItem=
"wAK-Uc-5gC"
secondAttribute=
"bottom"
constant=
"100"
id=
"WfQ-T1-V4i"
/>
<constraint
firstItem=
"Xep-hC-1Qc"
firstAttribute=
"top"
secondItem=
"Ama-4z-KkS"
secondAttribute=
"bottom"
constant=
"20"
id=
"XMW-e5-RVR"
/>
<constraint
firstItem=
"X2c-SV-S4c"
firstAttribute=
"centerX"
secondItem=
"OEh-I3-0VX"
secondAttribute=
"centerX"
id=
"fdY-rf-k8X"
/>
<constraint
firstItem=
"Xep-hC-1Qc"
firstAttribute=
"leading"
secondItem=
"RHs-jJ-JoQ"
secondAttribute=
"leading"
constant=
"20"
id=
"lTw-Mi-dFT"
/>
<constraint
firstItem=
"Ama-4z-KkS"
firstAttribute=
"centerY"
secondItem=
"RHs-jJ-JoQ"
secondAttribute=
"centerY"
constant=
"50"
id=
"tHV-HX-Eme"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Ama-4z-KkS"
secondAttribute=
"trailing"
constant=
"20"
id=
"uUB-Vq-Np6"
/>
<constraint
firstItem=
"X2c-SV-S4c"
firstAttribute=
"top"
secondItem=
"OEh-I3-0VX"
secondAttribute=
"bottom"
constant=
"7.5"
id=
"vqH-f8-9CH"
/>
</constraints>
</view>
</viewController>
...
...
Car/tools/HttpCilent.m
View file @
40aa3b8c
...
...
@@ -128,16 +128,21 @@
GET
:
@"stationUser/getUpgrade"
parameters
:
myDictionary
complete
:^
(
id
response
,
NSError
*
error
)
{
if
([
response
[
@"code"
]
isEqualToNumber
:
@
6
])
{
if
([
response
[
@"code"
]
isEqualToNumber
:
@
0
])
{
CLog
(
@"本地版本:%@"
,
version
);
NSDictionary
*
dic
=
response
[
@"data"
];
if
([
dic
isKindOfClass
:[
NSNull
class
]])
{
return
;
}
NSString
*
lastestVersion
=
dic
[
@"version"
];
BOOL
isForceUpdate
=
[
dic
[
@"forceupdate"
]
isEqualToString
:
@"YES"
];
TOAppversionEntity
*
appVersion
=
[[
TOAppversionEntity
alloc
]
initWithDictionary
:
dic
error
:
nil
];
NSString
*
lastestVersion
=
appVersion
.
version
;
BOOL
isForceUpdate
=
[
appVersion
.
forceupdate
isEqualToString
:
@"true"
];
NSString
*
trackViewUrl
=
dic
[
@"url"
];
if
([
self
version
:
version
lessthan
:
lastestVersion
])
{
//版本号不同
NSString
*
alertTitle
=
[
NSString
stringWithFormat
:
@"有新版本%@可以下载"
,
...
...
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