Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
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
bp
goods
Commits
48b38aae
Commit
48b38aae
authored
Aug 31, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'online_time' into test
parents
a0bb9ec9
13bdfa82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
GoodsService.php
application/services/goods/GoodsService.php
+4
-4
No files found.
application/services/goods/GoodsService.php
View file @
48b38aae
...
@@ -449,7 +449,7 @@ class GoodsService
...
@@ -449,7 +449,7 @@ class GoodsService
if
(
$online_type
==
2
)
{
if
(
$online_type
==
2
)
{
$onlineStartTime
=
empty
(
$sku
[
"online_start_time"
])
?
0
:
strtotime
(
$sku
[
"online_start_time"
]);
$onlineStartTime
=
empty
(
$sku
[
"online_start_time"
])
?
0
:
strtotime
(
$sku
[
"online_start_time"
]);
if
(
$onlineStartTime
>
time
())
{
if
(
$onlineStartTime
>
time
())
{
$statusData
[
'online_status'
]
=
GoodsSku
::
ONLINE_STATUS_
NO_ON
LINE
;
$statusData
[
'online_status'
]
=
GoodsSku
::
ONLINE_STATUS_
OFF
LINE
;
}
}
}
}
...
@@ -595,7 +595,7 @@ class GoodsService
...
@@ -595,7 +595,7 @@ class GoodsService
];
];
if
(
$onlineType
==
1
)
{
if
(
$onlineType
==
1
)
{
if
(
$sku
[
'audit_status'
]
==
1
)
{
if
(
$sku
[
'audit_status'
]
==
1
)
{
$goodsSkuData
[
'online_status'
]
=
1
;
$goodsSkuData
[
'online_status'
]
=
GoodsSku
::
ONLINE_STATUS_ONLINE
;
}
}
$goodsSkuData
[
'online_start_time'
]
=
date
(
"Y-m-d H:i:s"
);
$goodsSkuData
[
'online_start_time'
]
=
date
(
"Y-m-d H:i:s"
);
}
}
...
@@ -603,13 +603,13 @@ class GoodsService
...
@@ -603,13 +603,13 @@ class GoodsService
//暂不上架
//暂不上架
if
(
$onlineType
==
3
)
{
if
(
$onlineType
==
3
)
{
//$goodsSkuData['audit_status'] = 0;
//$goodsSkuData['audit_status'] = 0;
$goodsSkuData
[
'online_status'
]
=
0
;
$goodsSkuData
[
'online_status'
]
=
GoodsSku
::
ONLINE_STATUS_OFFLINE
;
}
}
if
(
$onlineType
==
2
)
{
if
(
$onlineType
==
2
)
{
$onlineStartTime
=
strtotime
(
$goodsSkuData
[
'online_start_time'
]);
$onlineStartTime
=
strtotime
(
$goodsSkuData
[
'online_start_time'
]);
if
(
$onlineStartTime
>
time
())
{
if
(
$onlineStartTime
>
time
())
{
$goodsSkuData
[
'online_status'
]
=
0
;
$goodsSkuData
[
'online_status'
]
=
GoodsSku
::
ONLINE_STATUS_OFFLINE
;
}
}
}
}
...
...
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