|
|
@@ -110,6 +110,12 @@ class ProductService extends AlibabaAgentBaseService
|
|
110
|
110
|
}
|
|
111
|
111
|
}
|
|
112
|
112
|
|
|
|
113
|
+ // 判断是否加入商品池
|
|
|
114
|
+ $product['importStatus'] = 0;
|
|
|
115
|
+ $import = Db::name('alibaba_import_goods')->where('product_id', $product['productId'])->find();
|
|
|
116
|
+ if ($import) {
|
|
|
117
|
+ $product['importStatus'] = 1;
|
|
|
118
|
+ }
|
|
113
|
119
|
return [
|
|
114
|
120
|
'productId' => $product['itemId'] ?? $product['productId'] ?? $product['offerId'] ?? $product['id'] ?? 0,
|
|
115
|
121
|
'productType' => $product['productType'] ?? '',
|
|
|
@@ -135,6 +141,7 @@ class ProductService extends AlibabaAgentBaseService
|
|
135
|
141
|
'shopName' => $product['shopName'] ?? $product['companyName'] ?? '',
|
|
136
|
142
|
'shopId' => $product['shopId'] ?? $product['memberId'] ?? '',
|
|
137
|
143
|
'detailUrl' => $product['detailUrl'] ?? $product['offerUrl'] ?? '',
|
|
|
144
|
+ 'importStatus' => $product['importStatus'],
|
|
138
|
145
|
];
|
|
139
|
146
|
}
|
|
140
|
147
|
|