|
@@ -38,11 +38,15 @@ class ElasticSearchGoodsNewCrontab2 implements JobInterface
|
|
|
//定时任务的执行逻辑
|
|
|
// $welfare_api_set = Config::getInstance()->getConf('WELFARE_API');
|
|
|
$welfare_api_set = [
|
|
|
- 'url' => 'https://open.api.superdesk.cn/api/base/dict_new/pushGoods',
|
|
|
+// 'url' => 'https://open.api.superdesk.cn/api/base/dict_new/pushGoods',
|
|
|
+ 'url' => 'http://open.api.superdesk.cn/api/base/dict_new/pushGoods',
|
|
|
// 'url' => '',
|
|
|
];
|
|
|
$page = 1;
|
|
|
while (true) {
|
|
|
+ if ($page > 20) {
|
|
|
+ break;
|
|
|
+ }
|
|
|
$goods = $this->getUpdateGoods($page);
|
|
|
if (!$goods) {
|
|
|
break;
|