NoAuthProbe has been changed.
- regist
This commit is contained in:
parent
cf70bc7bcb
commit
479f70cec9
|
@ -1,5 +1,7 @@
|
||||||
package com.loafle.overflow.module.noauthprobe.service;
|
package com.loafle.overflow.module.noauthprobe.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.apikey.model.ApiKey;
|
||||||
|
import com.loafle.overflow.module.apikey.service.ApiKeyService;
|
||||||
import com.loafle.overflow.module.domain.model.Domain;
|
import com.loafle.overflow.module.domain.model.Domain;
|
||||||
import com.loafle.overflow.module.member.model.Member;
|
import com.loafle.overflow.module.member.model.Member;
|
||||||
import com.loafle.overflow.module.meta.model.MetaNoAuthProbeStatus;
|
import com.loafle.overflow.module.meta.model.MetaNoAuthProbeStatus;
|
||||||
|
@ -26,6 +28,9 @@ public class NoAuthProbeService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private NoAuthProbeDAO noAuthProbeDAO;
|
private NoAuthProbeDAO noAuthProbeDAO;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ApiKeyService apiKeyService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ProbeService probeService;
|
private ProbeService probeService;
|
||||||
|
|
||||||
|
@ -37,6 +42,9 @@ public class NoAuthProbeService {
|
||||||
noAuthProbe.setTempProbeKey(UUID.randomUUID().toString());
|
noAuthProbe.setTempProbeKey(UUID.randomUUID().toString());
|
||||||
noAuthProbe.setStatus(new MetaNoAuthProbeStatus((short)3));
|
noAuthProbe.setStatus(new MetaNoAuthProbeStatus((short)3));
|
||||||
|
|
||||||
|
ApiKey apiKey = apiKeyService.readByApiKey(noAuthProbe.getApiKey());
|
||||||
|
noAuthProbe.setDomain(apiKey.getDomain());
|
||||||
|
|
||||||
return this.noAuthProbeDAO.save(noAuthProbe);
|
return this.noAuthProbeDAO.save(noAuthProbe);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user