113 lines
5.9 KiB
HTML
113 lines
5.9 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
|
||
<head>
|
||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
||
<link href="/jscss/style.css" rel="stylesheet" type="text/css" />
|
||
<script type="text/javascript" charset="utf-8" src="/jscss/theme.js"></script>
|
||
</head>
|
||
|
||
<body>
|
||
|
||
<div class="row" style="background:#eeeeee;">
|
||
<div class="ciy-form col-24 col-sm-24">
|
||
<label>回调LOG</label>
|
||
<div><ciy-textarea com="a" /></div>
|
||
</div>
|
||
<div class="ciy-form col-24 col-sm-24">
|
||
<div style="flex:none;padding-right:1em;">
|
||
<button type="button" class="btn lg" onclick="formsubmit(this);">分析</button>
|
||
</div>
|
||
<div>
|
||
<ciy-radio com="b" />
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div id="id_result"></div>
|
||
|
||
<script type="text/javascript" src="/jscss/ciy.js"></script>
|
||
<script type="text/javascript" src="/jscss/ciycmp.js"></script>
|
||
<script type="text/javascript" src="/ud/dict/ciy_arearpc.js"></script>
|
||
<script type="text/javascript" src="../common.js"></script>
|
||
|
||
<script type="text/javascript">
|
||
'use strict';
|
||
ciyfn.pageload(function () {
|
||
ciycmp({ dom: '[com=a]' });
|
||
ciycmp({ dom: '[com=b]', range: [{ id: '10', name: '原始' }, { id: '20', name: '重点' }], value: '20' });
|
||
});
|
||
function formsubmit(dom) {
|
||
var params = ciyfn.getform(dom);
|
||
var lines = params.a.split('\n');
|
||
var html = '';
|
||
//line 2025-07-15 16:14:58\t GET:func=ambhf/alipay.aqf& POST:charset=UTF-8¬ify_time=2025-07-15+16%3A14%3A57&unsign_time=2025-07-15+16%3A14%3A57&sign=FScISZZPIUX0SOJbT7dXOeoaAbdbmFvZmX7csF1%2FOxnGDST30SFuE%2FhWLL%2FrMOl7t7gOYgYuixdwz5uvWuVK2BD1bcWLXcrsa0btRsvQxCIQk8w4nOXkb2T7e5pzR5lZrMCL4aGUYZ%2FVTCzkKYWhjWP2HjYRhmGyJjbCUFMYBNr%2BM%2B96knUwQqo4zava%2BwvW9oCzOC1WTVqOunjQQqeMKFaI2uhwbxHmJtaR4NaJUGbL0Fq3c41ZD%2F83EYBCt7lydd%2B91OVKBJcy%2Fmzab1%2Fy6WSGW6HT6MNJcvSx7u%2F4eUsSJkBpzgXdQUoSY6caWefe9A5pDnR3oZ8MdfGQz6RJ2Q%3D%3D&merchant_app_id=2021005173683965&external_agreement_no=1I1&version=1.0¬ify_id=2025071501222161457021501405959732¬ify_type=dut_user_unsign&agreement_no=20255515198814819334&alipay_open_id=0349EGGiMJAohwXMGO-pS-2YRJXprFEj_08A5a7PDkwXzA4&auth_app_id=2021005173683965&personal_product_code=FUND_SAFT_SIGN_WITHHOLDING_P&app_id=2021005173683965&sign_type=RSA2&alipay_logon_id=hr***%40ciy.cn&status=UNSIGN&sign_scene=INDUSTRY%7CSATF_ACC
|
||
for (var i = 0; i < lines.length; i++) {
|
||
var line = lines[i];
|
||
var ind = line.indexOf('POST:');
|
||
if (ind > -1)
|
||
line = line.substring(ind + 5);
|
||
line = decodeURIComponent(line);
|
||
var arrs = line.split('&');
|
||
var arrobj = {};
|
||
for (var j = 0; j < arrs.length; j++) {
|
||
var arr = arrs[j].split('=');
|
||
if (arr.length == 2) {
|
||
arrobj[arr[0]] = arr[1];
|
||
}
|
||
}
|
||
if (params.b == '10') {
|
||
html += '<div style="line-height:1.5em;margin: 1em;">';
|
||
for (var j in arrobj) {
|
||
if (j == 'biz_content') {
|
||
var biz = JSON.parse(arrobj[j]);
|
||
html += '<div><pre>' + JSON.stringify(biz, null, 2) + '</pre></div>';
|
||
} else {
|
||
html += '<div><kbd>' + j + '</kbd><span>' + arrobj[j] + '</span></div>';
|
||
}
|
||
}
|
||
html += '</div><hr/>';
|
||
}
|
||
if (params.b == '20') {
|
||
var subhtml = '';
|
||
if (arrobj['notify_type'] == 'dut_user_sign') {
|
||
subhtml = '<div><span style="color:green;">用户签约: ' + arrobj['external_agreement_no'] + '</span></div>';
|
||
}
|
||
else if (arrobj['notify_type'] == 'dut_user_unsign')
|
||
subhtml = '<div><span style="color:darkred;">用户解约: ' + arrobj['external_agreement_no'] + '</span></div>';
|
||
else if (arrobj['msg_method'] == 'alipay.fund.trans.order.changed') {
|
||
var biz = JSON.parse(arrobj['biz_content']);
|
||
if (biz['status'] != 'SUCCESS'
|
||
&& biz['status'] != 'DEALING'
|
||
&& biz['status'] != 'CLOSED'
|
||
&& biz['status'] != 'WAIT_PAY')
|
||
subhtml = 'more';
|
||
if(biz['fail_reason'])
|
||
subhtml = '<div><span>转账失败原因: ' + biz['fail_reason'] + '</span></div>';
|
||
//subhtml = '<div><span style="color:blue;">转账: ' + biz['out_biz_no'] + ',' + biz['status'] + ',' + biz['trans_amount'] + '</span></div>';
|
||
}
|
||
if (subhtml == 'more') {
|
||
subhtml = '';
|
||
for (var j in arrobj) {
|
||
if (j == 'biz_content') {
|
||
var biz = JSON.parse(arrobj[j]);
|
||
subhtml += '<div><pre>' + JSON.stringify(biz, null, 2) + '</pre></div>';
|
||
} else {
|
||
subhtml += '<div><kbd>' + j + '</kbd><span>' + arrobj[j] + '</span></div>';
|
||
}
|
||
}
|
||
}
|
||
if (subhtml) {
|
||
html += '<div style="line-height:1.5em;margin: 1em;">';
|
||
html += subhtml;
|
||
html += '</div><hr/>';
|
||
}
|
||
}
|
||
}
|
||
$5('#id_result').html(html);
|
||
}
|
||
</script>
|
||
</body>
|
||
|
||
</html> |