Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
total
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
张杰
total
Commits
34e77856
Commit
34e77856
authored
7 years ago
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复临时抽查逻辑判断
parent
abf8a10d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
37 deletions
+27
-37
PatrolExamViewController.m
...lOnline(VI巡检)/ViewConstrollers/PatrolExamViewController.m
+1
-1
PatrolExamViewModel.m
...iness/PatrolOnline(VI巡检)/ViewModels/PatrolExamViewModel.m
+6
-1
ICRLoginViewController.m
total/GTOApp/Login/ICRLoginViewController.m
+0
-34
ZJPictureTableViewCell.m
total/GTOApp/UserUtil/PictureCell/ZJPictureTableViewCell.m
+1
-1
UploadManager.m
total/GTOApp/UserUtil/UploadManager/UploadManager.m
+19
-0
No files found.
total/GTOApp/Business/PatrolOnline(VI巡检)/ViewConstrollers/PatrolExamViewController.m
View file @
34e77856
...
...
@@ -326,7 +326,7 @@
}
for
(
NSInteger
i
=
0
;
i
<
self
.
viewModel
.
arrCellData
.
count
;
i
++
)
{
PatrolExamCellViewModel
*
vm
=
self
.
viewModel
.
arrCellData
[
i
];
if
(
1
)
{
if
(
photoType
(
vm
.
question
.
photoType
)
!=
PHOTO_TYPE_NO
)
{
if
([
questionArray
containsObject
:
vm
.
question
.
uuid
])
{
NSIndexPath
*
indexPath
=
[
NSIndexPath
indexPathForRow
:
i
inSection
:
0
];
[
self
.
tableView
scrollToRowAtIndexPath
:
indexPath
atScrollPosition
:(
UITableViewScrollPositionMiddle
)
animated
:
YES
];
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/Business/PatrolOnline(VI巡检)/ViewModels/PatrolExamViewModel.m
View file @
34e77856
...
...
@@ -89,7 +89,12 @@ static UILabel *stringLabel = nil;
//获取问题题目
for
(
ZJPatrolDetail_questions
*
questions
in
detail
.
questions
)
{
//如果等于临时
if
(
detail
.
temp
)
{
if
([
questions
.
photoType
isEqualToString
:
@"no"
])
{
questions
.
photoType
=
@"all"
;
}
}
if
([
questions
.
category
isEqualToString
:
category
])
{
//问题题目
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/Login/ICRLoginViewController.m
View file @
34e77856
...
...
@@ -152,7 +152,6 @@
//极光别名
NSSet
*
setTags
=
[
NSSet
setWithArray
:@[
@""
]];
[
APService
setTags
:
setTags
alias
:
userUtil
.
f_user_uuid
callbackSelector
:
nil
object
:
nil
];
[
weakSelf
getAppOption
];
};
void
(
^
fail
)(
id
)
=
^
(
NSError
*
data
)
{
...
...
@@ -163,39 +162,6 @@
[
httpCtrl
doLoginWithUserName
:
nsUserName
password
:
nsPassword
registerCode
:
nsRegisterCode
success
:
succ
failure
:
fail
];
}
/**
获取App配置项
*/
-
(
void
)
getAppOption
{
NSString
*
string
=
@"{
\"
accessKey
\"
:
\"
LTAIiRWdyPrLTinG
\"
,
\"
secretKey
\"
:
\"
nWBZDNaGf6CWL8FhQt0eJB8Y0xpUOd
\"
,
\"
endPoint
\"
:
\"
oss-cn-shanghai.aliyuncs.com
\"
,
\"
bucketName
\"
:
\"
total-gomore
\"
,
\"
region
\"
:
\"
oss-cn-shanghai
\"
,
\"
imgEndpoint
\"
:
\"
total-gomore.img-cn-shanghai.aliyuncs.com
\"
,
\"
width
\"
:
\"
200
\"
,
\"
height
\"
:
\"
200
\"
}"
;
AccountConfigModel_uploadType
*
uploadType
=
[[
AccountConfigModel_uploadType
alloc
]
initWithString
:
string
error
:
nil
];
if
([
uploadType
.
ossType
isEqualToString
:
@"COS"
])
{
uploadType
.
type
=
@"COS"
;
}
else
{
uploadType
.
type
=
@"OSS"
;
}
AccountConfigModel
*
configModel
=
[
AccountConfigModel
new
];
configModel
.
uploadType
=
uploadType
;
kUser
.
configModel
=
configModel
;
// [RequestManager request_OptionSuccess:^(id returnValue) {
// if ([[self class] verifyData:returnValue]) {
// if (![[BaseViewModel formatData:returnValue] isKindOfClass:[NSNull class]]) {
// AccountConfigModel *configModel = [[AccountConfigModel alloc] initWithDictionary:returnValue error:nil];
// [configModel analysisConfigModel];
// kUser.configModel = configModel;
// }
// return;
// }
// [IBTLoadingView showTextOnly:[BaseViewModel messageData:returnValue]];
// } failure:^(id errorValue) {
// [IBTLoadingView showTextOnly:errorValue];
// }];
}
#pragma mark - TextObserver
-
(
void
)
inputTextEditChanged
:
(
NSNotification
*
)
obj
{
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/UserUtil/PictureCell/ZJPictureTableViewCell.m
View file @
34e77856
...
...
@@ -126,7 +126,7 @@
case
PHOTO_TYPE_ALL
:
{
DBCameraViewController
*
cameraController
=
[
DBCameraViewController
initWithDelegate
:
self
];
[
cameraController
set
ForceQuadCrop
:
YES
];
[
cameraController
set
UseCameraSegue
:
NO
];
DBCameraContainerViewController
*
container
=
[[
DBCameraContainerViewController
alloc
]
initWithDelegate
:
self
];
[
container
setCameraViewController
:
cameraController
];
[
container
setFullScreenMode
];
...
...
This diff is collapsed.
Click to expand it.
total/GTOApp/UserUtil/UploadManager/UploadManager.m
View file @
34e77856
...
...
@@ -19,6 +19,24 @@
@implementation
UploadManager
/**
获取App配置项
*/
+
(
void
)
getAppOption
{
NSString
*
string
=
@"{
\"
accessKey
\"
:
\"
LTAIiRWdyPrLTinG
\"
,
\"
secretKey
\"
:
\"
nWBZDNaGf6CWL8FhQt0eJB8Y0xpUOd
\"
,
\"
endPoint
\"
:
\"
oss-cn-shanghai.aliyuncs.com
\"
,
\"
bucketName
\"
:
\"
total-gomore
\"
,
\"
region
\"
:
\"
oss-cn-shanghai
\"
,
\"
imgEndpoint
\"
:
\"
total-gomore.img-cn-shanghai.aliyuncs.com
\"
,
\"
width
\"
:
\"
200
\"
,
\"
height
\"
:
\"
200
\"
}"
;
AccountConfigModel_uploadType
*
uploadType
=
[[
AccountConfigModel_uploadType
alloc
]
initWithString
:
string
error
:
nil
];
if
([
uploadType
.
ossType
isEqualToString
:
@"COS"
])
{
uploadType
.
type
=
@"COS"
;
}
else
{
uploadType
.
type
=
@"OSS"
;
}
AccountConfigModel
*
configModel
=
[
AccountConfigModel
new
];
configModel
.
uploadType
=
uploadType
;
kUser
.
configModel
=
configModel
;
}
/**
上传附件
...
...
@@ -28,6 +46,7 @@
*/
+
(
void
)
uploadObjectArray
:
(
NSArray
<
PostAttachmentModel
*>*
)
array
completed
:
(
void
(
^
)(
UploadResponse
*
success
))
completed
failed
:
(
void
(
^
)(
NSString
*
error
))
failed
{
[[
self
class
]
getAppOption
];
//判断上传所需配置项是否为空
if
([
ToolsManager
empty
:
kUser
.
configModel
.
uploadType
.
accessKey
]
||
[
ToolsManager
empty
:
kUser
.
configModel
.
uploadType
.
secretKey
]
||
[
ToolsManager
empty
:
kUser
.
configModel
.
uploadType
.
endPoint
]
||
[
ToolsManager
empty
:
kUser
.
configModel
.
uploadType
.
bucketName
])
{
ShowAlertView
(
@"提示"
,
@"上传配置项获取失败,暂时无法上传附件"
,
@[
@"我知道了"
],
UIAlertControllerStyleAlert
,
^
(
NSInteger
index
)
{
...
...
This diff is collapsed.
Click to expand it.
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