Browse Source

SMS전송 수정

SBK 2 years ago
parent
commit
9be2deb689

+ 1 - 1
src/main/java/sgc/portal/com/sym/batch/service/BatchService.java

@@ -126,7 +126,7 @@ public class BatchService {
   			batch.setMobile(mobile);
   			batch.setSContents(sContents);
   			batchMapper.insertSms(batch);*/
-  		} else if(activeProfiles[0].equals("prd")) {	//운영
+  		} else {										//운영
   			batch.setMobile(mobile);
   			batch.setSContents(sContents);
   			batchMapper.insertSms(batch);

+ 2 - 6
src/main/java/sgc/portal/cs/cspop/service/CSPOPService.java

@@ -66,15 +66,11 @@ public class CSPOPService {
 			result.put("status", "OK");
 	    	result.put("gubun", cSPOPVo.getGubun());
 	    	result.put("sconts", cSPOPVo.getSconts());
-		} else if(activeProfiles[0].equals("prod")) {	//운영
-			//insertSms(cSPOPVo);
+		} else {										//운영
+			insertSms(cSPOPVo);
 			result.put("status", "OK");
 	    	result.put("gubun", cSPOPVo.getGubun());
 	    	result.put("sconts", cSPOPVo.getSconts());
-		} else {
-			result.put("status", "NO");
-	    	result.put("gubun", "");
-	    	result.put("sconts", "");
 		}
 		
         return result;