fix: 주문상세 배송지 수정 응답 메시지 처리 보정
This commit is contained in:
@@ -1037,13 +1037,22 @@
|
||||
url:'<c:url value="/mngr/ordr/ordrmngr/updateDlvylcInfoUpdt"/>',
|
||||
data:$(obj).serialize(),
|
||||
success:function(data) {
|
||||
const result = data.resBody ? data.resBody.result : null;
|
||||
let result = data.resBody ? data.resBody.result : null;
|
||||
|
||||
if (!result) {
|
||||
alert('<spring:message code="error.internal-server"/>');
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof result === 'string') {
|
||||
if (!fn_check_json(result)) {
|
||||
alert('<spring:message code="error.internal-server"/>');
|
||||
return;
|
||||
}
|
||||
|
||||
result = JSON.parse(result);
|
||||
}
|
||||
|
||||
if (result.status !== '0') {
|
||||
alert(result.message || '<spring:message code="error.internal-server"/>');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user