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
68786876
Commit
68786876
authored
Jul 15, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:set
parent
1ddf3a63
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
MarketingService.php
application/services/marketing/MarketingService.php
+10
-4
Goods.php
daemon/Goods.php
+2
-2
Marketing.php
daemon/Marketing.php
+2
-3
No files found.
application/services/marketing/MarketingService.php
View file @
68786876
...
...
@@ -142,11 +142,17 @@ class MarketingService
if
(
!
empty
(
$params
[
'goods_sku_id'
]))
{
$goodsSkuId
=
$params
[
'goods_sku_id'
];
$marketingGoodsList
=
MarketingGoods
::
marketingGoodsList
([
'goods_sku_id'
=>
$goodsSkuId
]);
$marketingId
=
array_column
(
$marketingGoodsList
,
'marketing_id'
);
if
(
!
empty
(
$where
[
'marketing_id'
]))
{
array_push
(
$marketingId
,
$where
[
'marketing_id'
]);
if
(
empty
(
$marketingGoodsList
))
{
$where
[
'marketing_id'
]
=
"-1"
;
}
else
{
$marketingId
=
array_column
(
$marketingGoodsList
,
'marketing_id'
);
if
(
!
empty
(
$where
[
'marketing_id'
]))
{
array_push
(
$marketingId
,
$where
[
'marketing_id'
]);
}
$where
[
'marketing_id'
]
=
$marketingId
;
}
$where
[
'marketing_id'
]
=
$marketingId
;
}
$where
[
'ORDER'
]
=
[
"create_time"
=>
"DESC"
];
...
...
daemon/Goods.php
View file @
68786876
...
...
@@ -6,7 +6,7 @@ namespace Daemon;
use
Api\PhpServices\Daemon\DaemonServiceInterface
;
use
App\Models\goods\mysql\GoodsSku
;
use
Api\PhpUtils\Log\
File
Log
;
use
Api\PhpUtils\Log\
Daemon
Log
;
class
Goods
implements
DaemonServiceInterface
{
public
function
run
()
...
...
@@ -17,7 +17,7 @@ class Goods implements DaemonServiceInterface
'expiration_time[<]'
=>
date
(
"Y-m-d H:i:s"
,
time
())
];
$goodsList
=
GoodsSku
::
getRecords
(
$orderData
);
File
Log
::
info
(
'DaemonServiceInterface_goods'
,
json_encode
(
$goodsList
));
Daemon
Log
::
info
(
'DaemonServiceInterface_goods'
,
json_encode
(
$goodsList
));
foreach
(
$goodsList
as
$key
=>
$value
)
{
$where
=
[];
$where
[
'goods_sku_id'
]
=
!
empty
(
$value
[
'goods_sku_id'
])
?
$value
[
'goods_sku_id'
]
:
''
;
...
...
daemon/Marketing.php
View file @
68786876
...
...
@@ -6,7 +6,7 @@ namespace Daemon;
use
Api\PhpServices\Daemon\DaemonServiceInterface
;
use
App\Models\marketing\mysql\Marketing
as
MarketingDao
;
use
Api\PhpUtils\Log\
File
Log
;
use
Api\PhpUtils\Log\
Daemon
Log
;
class
Marketing
implements
DaemonServiceInterface
{
...
...
@@ -18,11 +18,10 @@ class Marketing implements DaemonServiceInterface
'end_time[<]'
=>
date
(
"Y-m-d H:i:s"
,
time
())
];
$orderInfoList
=
MarketingDao
::
getMarketingList
(
$orderData
);
File
Log
::
info
(
'DaemonServiceInterface_marketing'
,
json_encode
(
$orderInfoList
));
Daemon
Log
::
info
(
'DaemonServiceInterface_marketing'
,
json_encode
(
$orderInfoList
));
foreach
(
$orderInfoList
as
$key
=>
$value
)
{
$where
=
[];
$where
[
'marketing_id'
]
=
!
empty
(
$value
[
'marketing_id'
])
?
$value
[
'marketing_id'
]
:
''
;
$colums
=
[
'online_status'
=>
3
,
];
...
...
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