| @@ -90,12 +90,7 @@ public class TtGoodsCategoryController extends DouyinBaseController { | |||||
| public ResultData syncGetTt() { | public ResultData syncGetTt() { | ||||
| logger.debug("[" + getIpAddr() + "] TtMerchantPoiController::syncGetTt"); | logger.debug("[" + getIpAddr() + "] TtMerchantPoiController::syncGetTt"); | ||||
| try { | try { | ||||
| boolean isSaas = this.isGoodLifeSaas(); | |||||
| if (!isSaas) { | |||||
| ttGoodsCategoryService.syncGet(false); | |||||
| }else { | |||||
| ttGoodsCategoryService.syncGet(true); | |||||
| } | |||||
| ttGoodsCategoryService.syncGet(false); | |||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error("syncGetTt error.",e); | logger.error("syncGetTt error.",e); | ||||
| return new ResultData(Result.ERROR,e.getMessage()); | return new ResultData(Result.ERROR,e.getMessage()); | ||||
| @@ -103,6 +98,22 @@ public class TtGoodsCategoryController extends DouyinBaseController { | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @TenantIgnore | |||||
| @ApiOperation("同步抖音类目") | |||||
| @GetMapping("syncGetTtNew") | |||||
| @ApiImplicitParams({}) | |||||
| @SystemControllerLog(description = "同步") | |||||
| public ResultData syncGetTtNew() { | |||||
| logger.debug("[" + getIpAddr() + "] TtMerchantPoiController::syncGetTt"); | |||||
| try { | |||||
| ttGoodsCategoryService.syncGet(true); | |||||
| } catch (Exception e) { | |||||
| logger.error("syncGetTt error.",e); | |||||
| return new ResultData(Result.ERROR,e.getMessage()); | |||||
| } | |||||
| return new ResultData(); | |||||
| } | |||||
| @TenantIgnore | @TenantIgnore | ||||
| @ApiOperation("分页列表接口") | @ApiOperation("分页列表接口") | ||||
| @GetMapping("allTreeList") | @GetMapping("allTreeList") | ||||
| @@ -195,4 +206,6 @@ public class TtGoodsCategoryController extends DouyinBaseController { | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| } | } | ||||