|
@@ -106,7 +106,7 @@ class ElasticSearchGoodsNewCrontab2 implements JobInterface
|
|
|
if ($res) {
|
|
|
$category_type = $res[0]['category_type'];
|
|
|
}
|
|
|
- if ($category_type == 2) {
|
|
|
+ if ($category_type) {
|
|
|
$sql = "select pcate,ccate,tcate from ims_superdesk_shop_operators_goods where goodsid = '{$goods_id}' and operators_id = '{$operators_id}' ";
|
|
|
$queryBuild->raw($sql);
|
|
|
$res_data = DbManager::getInstance()->query($queryBuild, true, 'default')->toArray();
|