Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
mobile-group
galaxy-iOS
Commits
e453c5ab
Commit
e453c5ab
authored
Sep 21, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 续期
parent
1d98ad7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
YHResignMaterialViewModel.swift
...MaterialManage(续期资料管理)/VM/YHResignMaterialViewModel.swift
+10
-4
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignMaterialManage(续期资料管理)/VM/YHResignMaterialViewModel.swift
View file @
e453c5ab
...
...
@@ -271,7 +271,8 @@ class YHResignMaterialViewModel: YHBaseViewModel {
// 再调用业务接口
if
let
successUrl
=
successUrl
,
!
successUrl
.
isEmpty
{
let
fileName
=
fileUrl
.
absoluteString
.
lastPathComponent
var
fileName
=
fileUrl
.
absoluteString
.
lastPathComponent
let
model
=
YHMaterialModelItemModel
()
model
.
url
=
successUrl
...
...
@@ -279,7 +280,7 @@ class YHResignMaterialViewModel: YHBaseViewModel {
model
.
naming
=
fileName
let
dateFormatter
=
DateFormatter
()
dateFormatter
.
dateFormat
=
"YYYY-MM-dd"
dateFormatter
.
dateFormat
=
"YYYY-MM-dd
HH:mm:ss
"
let
dateString
=
dateFormatter
.
string
(
from
:
Date
())
model
.
updated_at
=
dateString
...
...
@@ -375,8 +376,13 @@ class YHResignMaterialViewModel: YHBaseViewModel {
// 再调用业务接口
let
model
=
YHMaterialModelItemModel
()
model
.
name
=
imageName
model
.
naming
=
imageName
var
imgName
=
imageName
if
let
fileURL
=
URL
(
string
:
imageName
)
{
imgName
=
fileURL
.
deletingPathExtension
()
.
lastPathComponent
+
"."
+
suffix
}
model
.
name
=
imgName
model
.
naming
=
imgName
model
.
url
=
url
let
dateFormatter
=
DateFormatter
()
...
...
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