|
|
@ -1,8 +1,11 @@
|
|
|
|
package com.mashibing.api.service.sendCheck.impl;
|
|
|
|
package com.mashibing.api.service.sendCheck.impl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.mashibing.api.feignClient.BeaconCacheClient;
|
|
|
|
import com.mashibing.api.pojo.SingleSendRequest;
|
|
|
|
import com.mashibing.api.pojo.SingleSendRequest;
|
|
|
|
import com.mashibing.api.service.sendCheck.SendCheckService;
|
|
|
|
import com.mashibing.api.service.sendCheck.SendCheckService;
|
|
|
|
|
|
|
|
import com.mashibing.common.pojo.StandardSubmit;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -16,8 +19,12 @@ import org.springframework.stereotype.Service;
|
|
|
|
@Service("ApikeySendCheck")
|
|
|
|
@Service("ApikeySendCheck")
|
|
|
|
public class ApikeySendCheckServiceImpl implements SendCheckService {
|
|
|
|
public class ApikeySendCheckServiceImpl implements SendCheckService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
BeaconCacheClient beaconCacheClient;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void check(SingleSendRequest request) {
|
|
|
|
public void check(StandardSubmit standardSubmit) {
|
|
|
|
log.info("Check apikey...");
|
|
|
|
log.info("Check apikey...");
|
|
|
|
|
|
|
|
beaconCacheClient.hget(standardSubmit.getApikey());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|