Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMPhobos
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMPhobos
Commits
a0933f13
Commit
a0933f13
authored
Nov 24, 2017
by
翟国钧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userid类型改变
parent
ca0efb13
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
GMPhotoTest.m
Example/Tests/GMPhotoTest.m
+2
-2
Phobos.h
Pod/Classes/Phobos.h
+1
-1
Phobos.m
Pod/Classes/Phobos.m
+2
-2
No files found.
Example/Tests/GMPhotoTest.m
View file @
a0933f13
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
NSString
*
const
MockAppName
=
@"gengmei_test"
;
NSString
*
const
MockAppName
=
@"gengmei_test"
;
NSString
*
const
MockChannelId
=
@"AppStore"
;
NSString
*
const
MockChannelId
=
@"AppStore"
;
NSString
*
const
MockEventId
=
@"eventId"
;
NSString
*
const
MockEventId
=
@"eventId"
;
NS
Integer
const
MockUserId
=
1
;
NS
String
*
const
MockUserId
=
@"1"
;
NSString
*
const
MockCityId
=
@"beijing"
;
NSString
*
const
MockCityId
=
@"beijing"
;
@interface
GMPhotoTest
:
XCTestCase
@interface
GMPhotoTest
:
XCTestCase
...
@@ -52,7 +52,7 @@ NSString *const MockCityId = @"beijing";
...
@@ -52,7 +52,7 @@ NSString *const MockCityId = @"beijing";
XCTAssertTrue
(
array
.
count
==
1
,
@"array is empty"
);
XCTAssertTrue
(
array
.
count
==
1
,
@"array is empty"
);
NSDictionary
*
dict
=
[
array
objectAtIndex
:
0
];
NSDictionary
*
dict
=
[
array
objectAtIndex
:
0
];
[
self
verfiyDict
:
dict
];
[
self
verfiyDict
:
dict
];
XCTAssertTrue
([[
dict
objectForKey
:
@"user_id"
]
i
ntegerValue
]
==
MockUserId
,
@"Invalid user_id value"
);
XCTAssertTrue
([[
dict
objectForKey
:
@"user_id"
]
i
sEqualToString
:
MockUserId
]
,
@"Invalid user_id value"
);
}
}
/**
/**
...
...
Pod/Classes/Phobos.h
View file @
a0933f13
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
*
*
* @since 0.0.2
* @since 0.0.2
*/
*/
@property
(
assign
,
nonatomic
)
NSInteger
userId
;
@property
(
strong
,
nonatomic
)
NSString
*
userId
;
/*!
/*!
* @author zhaiguojun, 16-05-31
* @author zhaiguojun, 16-05-31
...
...
Pod/Classes/Phobos.m
View file @
a0933f13
...
@@ -50,7 +50,7 @@ static NSString *sdkVersion = @"110";
...
@@ -50,7 +50,7 @@ static NSString *sdkVersion = @"110";
_appName
=
appName
;
_appName
=
appName
;
_channelId
=
channelId
;
_channelId
=
channelId
;
_logEnabled
=
NO
;
_logEnabled
=
NO
;
_userId
=
0
;
_userId
=
@""
;
_netStatus
=
@""
;
_netStatus
=
@""
;
_currentCityId
=
@""
;
_currentCityId
=
@""
;
_serverAPI
=
@""
;
_serverAPI
=
@""
;
...
@@ -388,7 +388,7 @@ static NSString *sdkVersion = @"110";
...
@@ -388,7 +388,7 @@ static NSString *sdkVersion = @"110";
[
dict
setObject
:
appParams
forKey
:
@"app"
];
[
dict
setObject
:
appParams
forKey
:
@"app"
];
[
dict
setObject
:
sdkVersion
forKey
:
@"version"
];
[
dict
setObject
:
sdkVersion
forKey
:
@"version"
];
[
dict
setObject
:
deviceParams
forKey
:
@"device"
];
[
dict
setObject
:
deviceParams
forKey
:
@"device"
];
[
dict
setObject
:
@
(
_userId
)
forKey
:
@"user_id"
];
[
dict
setObject
:
_userId
forKey
:
@"user_id"
];
[
dict
setObject
:
currentTime
forKey
:
@"create_at"
];
[
dict
setObject
:
currentTime
forKey
:
@"create_at"
];
[
dict
setObject
:
attributes
forKey
:
@"params"
];
[
dict
setObject
:
attributes
forKey
:
@"params"
];
[
dict
setObject
:
_sessionId
forKey
:
@"app_session_id"
];
[
dict
setObject
:
_sessionId
forKey
:
@"app_session_id"
];
...
...
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