|
|
|
@ -166,7 +166,7 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
|
client.putAll(clientConfigService.find(client_id));
|
|
|
|
|
client = clientInfoWithNoSecretInfo(client);
|
|
|
|
|
client.put("client_less_file", false);
|
|
|
|
|
if (client.getIntValue("open_status") == 10) {
|
|
|
|
|
if ((client.getIntValue("approve_result") == 2 || client.getIntValue("open_status") == 10) && client.getIntValue("source")!=4) {
|
|
|
|
|
List<JSONObject> clientFiles = clientFilesMapper.findAllClientFile(client.getIntValue("client_id"));
|
|
|
|
|
if (clientFiles != null && clientFiles.size() > 0) {
|
|
|
|
|
clientFiles = clientFiles.stream().filter(fileJson -> ((fileJson.getIntValue("status") == 1 || fileJson.getIntValue("status") == 2))).collect(Collectors.toList());
|
|
|
|
@ -643,7 +643,7 @@ public class SignInAccountServiceImpl implements SignInAccountService, Applicati
|
|
|
|
|
public JSONObject checkAuthFileStatus(JSONObject client) {
|
|
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
result.put("client_less_file", false);
|
|
|
|
|
if (client.getIntValue("open_status") == 10) {
|
|
|
|
|
if ((client.getIntValue("approve_result") == 2 || client.getIntValue("open_status") == 10) && client.getIntValue("source")!=4) {
|
|
|
|
|
List<JSONObject> clientFiles = clientFilesMapper.findAllClientFile(client.getIntValue("client_id"));
|
|
|
|
|
boolean clientFilesIsLess = false;
|
|
|
|
|
for (int i = 0; i < FILE_KEYS.length; i++) {
|
|
|
|
|