PageSourceSearch

https://www.eyagi.co.kr/onlineJoin/js/lg_apim_worker.js?1790244266

js eyagi.co.kr collected 2026-09-24 10:04:37 UTC 6,873 bytes, 238 lines download raw bytes

1function lg_apim_worker() {
2    this.callApim = function (oParam, callback, before, complete) {
3        var err_ret = {
4            "is_success": false,
5            "data": null
6        };
7        var _callback = callback;
8        var _this = this;
9        var _ajax_option = {
10            url: "/API/lgapim/worker_test2.php",
11            type: "post",
12            dataType: 'json',
13            data: oParam,
14            success: function (data) {
15                _callback(JSON.parse(data));
16            },
17            error: function () {
18                _callback(err_ret);
19            }
20        };
21        if (null != (before || null)) {
22            _ajax_option.beforeSend = before;
23        }
24        if (null != (complete || null)) {
25            _ajax_option.complete = complete;
26        }
27        $.ajax(_ajax_option);
28    }
29};
30
31lg_apim_worker.prototype.get_row = function(oParam,cnt,callback){
32    var err_ret = {"is_success":'N',"data":null};
33    var _callback = callback;
34    var tot_cnt = cnt;
35    var getRowinterval = setInterval(function() {
36      tot_cnt--;
37      $.ajax({
38        url : "/API/lgapim/getrow.php",
39        type : "post",
40        dataType : 'json',
41        data : oParam,
42        success : function(data){
43          if( tot_cnt < 0 || 'Y' == data.is_success ){
44            clearInterval(getRowinterval);
45            _callback(data);
46          }
47        },
48        error : function() {
49          _callback(err_ret);
50        }
51      });
52    }, 1500);
53}
54
55lg_apim_worker.prototype.do_before_hopeno = function (req_no,hope_no, callback, before, complete) {
56
57    var _this = this;
58
59    // var ret_json = {
60    //     'is_success': false,
61    //     'msg': '',
62    //     'data': null
63    // }
64    var _callback = callback;
65    _this.callBfSelnum('bf_selnum', req_no,hope_no, function (data) {
66        _callback(data);
67    });
68
69}
70
71lg_apim_worker.prototype.do_after_hopeno = function (req_no,rsv_no,usim_no, callback, before, complete) {
72
73    var _this = this;
74    var _callback = callback;
75    _this.callAfSelnum('af_selnum', req_no,rsv_no,usim_no,function (data) {
76        _callback(data);
77    });
78
79}
80
81
82lg_apim_worker.prototype.sb013Sel = function (code, req_no,hope_prod_no,callback, before, complete) {
83    var oParam = {
84        "req_no": req_no,
85        "hope_prod_no" : hope_prod_no
86    };
87    oParam.uri = code;
88    this.callApim(oParam, callback, before, complete);
89}
90
91lg_apim_worker.prototype.sb802Sel = function (code, req_no,rsv_prod_no,callback, before, complete) {
92    var oParam = {
93        "req_no": req_no,
94        "rsv_prod_no" : rsv_prod_no
95    };
96    oParam.uri = code;
97    this.callApim(oParam, callback, before, complete);
98}
99
100lg_apim_worker.prototype.sb805 = function (code, req_no,hldDvCd,callback, before, complete) {
101    var oParam = {
102        "req_no": req_no,
103        "hldDvCd" : hldDvCd
104    };
105    oParam.uri = code;
106    this.callApim(oParam, callback, before, complete);
107}
108
109lg_apim_worker.prototype.can_open = function (join_type,before, complete) {
110    var ret = {
111        "is_success": false,
112        "data": null,
113        'msg' : ''
114    };
115
116    var oParam = {
117        "join_type": join_type,
118        'uri' : 'sb-804'
119    };
120
121    var _ajax_option = {
122        url: "/API/lgapim/worker_test2.php",
123        type: "post",
124        async: false,
125        dataType: 'json',
126        data: oParam,
127        success: function (data) {
128            if('N' == oParam.join_type)
129            {
130                if(data.is_success)
131                {
132                    ret.is_success = true;
133                }
134                else
135                {
136                    ret.msg = '신규가입 가능 시간이 아닙니다.\n신규가입 : 오전 8시 ~ 오후 8시 (요일 제한 없음)';
137                }
138            }
139            if('T' == oParam.join_type)
140            {
141                var ret_data = JSON.parse(data);
142                if(ret_data.is_success && 'YES' == ret_data.data.resultCode)
143                {
144                    ret.is_success = true;
145                }
146                else
147                {
148                    ret.msg = '번호이동 가능 시간이 아닙니다.\n번호이동 : 오전 10시 ~ 오후 8시 (일요일,신정/설/추석 당일 제외)';
149                }
150
151                // if(data.is_success)
152                // {
153                //     ret.is_success = true;
154                // }
155                // else
156                // {
157                //     ret.msg = '번호이동 가능 시간이 아닙니다.\n번호이동 : 오전 10시 ~ 오후 8시 (일요일,신정/설/추석 당일 제외)';
158                // }
159            }
160            // ret = JSON.parse(data);
161        },
162        error: function () {
163            ret.msg = '운영시간을 가져오는 도중 오류가 발생하였습니다.';
164        }
165    };
166    if (null != (before || null)) {
167        _ajax_option.beforeSend = before;
168    }
169    if (null != (complete || null)) {
170        _ajax_option.complete = complete;
171    }
172    $.ajax(_ajax_option);
173
174    return ret;
175}
176
177lg_apim_worker.prototype.callByCode = function (code, req_no,callback, before, complete) {
178    var oParam = {
179        "req_no": req_no
180    };
181    oParam.uri = code;
182    this.callApim(oParam, callback, before, complete);
183}
184
185lg_apim_worker.prototype.callBfSelnum = function (code, req_no,hope_no, callback, before, complete) {
186    var oParam = {
187        "req_no": req_no,
188        "hope_prod_no" : hope_no
189    };
190    oParam.uri = code;
191    this.callApim(oParam, callback, before, complete);
192}
193
194lg_apim_worker.prototype.callAfSelnum = function (code, req_no,rsv_no,usim_no, callback, before, complete) {
195    var oParam = {
196        "req_no": req_no,
197        "rsv_prod_no" : rsv_no,
198        "usim_no" : usim_no
199    };
200    oParam.uri = code;
201    this.callApim(oParam, callback, before, complete)
202}
203
204function lgErrorChk(cnt, req_no, c_name){
205    let ret = {
206        "is_success": false,
207        "data": null,
208        'msg' : ''
209    };
210
211    let oParam = {
212        "req_no": req_no,
213        "cname": c_name
214    }
215    $.ajax({
216        url: "/API/lgapim/getErrCnt.php",
217        type: "post",
218        async: false,
219        dataType: 'json',
220        data: oParam,
221        success: function (data) {
222            
223            // ret = JSON.parse(data);
224        },
225        error: function () {
226            ret.msg = '오류 횟수 체크중 오류가 발생했습니다.';
227        }
228    });
229}
230
231
232// lg_apim_worker.prototype.sb803pos = function (req_no, callback, before, complete) {
233//     var oParam = {
234//         "req_no": req_no
235//     };
236//     oParam.uri = "sb803pos";
237//     this.callApim(oParam, callback, before, complete);
238// }

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.