|
|
@ -283,13 +283,18 @@ class WebsiteController extends BaseController |
|
|
*/ |
|
|
*/ |
|
|
public function sitemap(SitemapService $sitemapService): \think\response\Json |
|
|
public function sitemap(SitemapService $sitemapService): \think\response\Json |
|
|
{ |
|
|
{ |
|
|
// $siteId = (int)$this->request->param('website_id');
|
|
|
|
|
|
// $sellerId = $this->admin['seller_id'];
|
|
|
|
|
|
// $res = $sitemapService -> makeSitemap($siteId,$sellerId);
|
|
|
|
|
|
// return json($res);
|
|
|
|
|
|
|
|
|
$dealDataToNewReqStr = request()->param('dealDataToNew'); |
|
|
|
|
|
if($dealDataToNewReqStr === 'dealDataToNew'){ |
|
|
|
|
|
$this->dealDataToNew(); |
|
|
|
|
|
return json(['msg'=>'ok']); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$siteId = (int)$this->request->param('website_id'); |
|
|
|
|
|
$sellerId = $this->admin['seller_id']; |
|
|
|
|
|
$res = $sitemapService -> makeSitemap($siteId,$sellerId); |
|
|
|
|
|
return json($res); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->dealDataToNew(); |
|
|
|
|
|
return json(['msg'=>'ok']); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|