Commit f166c730 authored by jianghaiming's avatar jianghaiming

Merge branch 'develop' into test

parents eea09d1b c67b7083
...@@ -6,9 +6,10 @@ namespace Daemon; ...@@ -6,9 +6,10 @@ namespace Daemon;
use Api\PhpServices\Daemon\DaemonServiceInterface; use Api\PhpServices\Daemon\DaemonServiceInterface;
use App\Models\goods\mysql\GoodsSku; use App\Models\goods\mysql\GoodsSku;
use App\Services\goods\GoodsService;
use Api\PhpUtils\Log\DaemonLog; use Api\PhpUtils\Log\DaemonLog;
class Goods implements DaemonServiceInterface class Goods implements DaemonServiceInterface
{
public function run() public function run()
{ {
sleep(2); sleep(2);
...@@ -26,6 +27,9 @@ class Goods implements DaemonServiceInterface ...@@ -26,6 +27,9 @@ class Goods implements DaemonServiceInterface
'online_status' => 2, 'online_status' => 2,
]; ];
GoodsSku::save($colums, $where); GoodsSku::save($colums, $where);
//更新es
GoodsService::updateGoodsInfoToEs($where['goods_sku_id']);
} }
} }
...@@ -45,6 +49,8 @@ class Goods implements DaemonServiceInterface ...@@ -45,6 +49,8 @@ class Goods implements DaemonServiceInterface
'online_status' => 2, 'online_status' => 2,
]; ];
GoodsSku::save($colums, $where); GoodsSku::save($colums, $where);
//更新es
GoodsService::updateGoodsInfoToEs($where['goods_sku_id']);
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment