Files
jjx-admin/uniCloud-tcb/cloudfunctions/router/service/admin/finance/balance/sys/getFlow.js
T
2026-10-08 18:19:39 +08:00

36 lines
946 B
JavaScript

'use strict';
module.exports = {
/**
* 查询余额明细
* @url admin/finance/balance/sys/getFlow 前端调用的url参数地址
* data 请求参数
* @param {String} accNo 账号
* @param {String} transDate 交易日期,格式:yyyy-MM-dd
*/
main: async (event) => {
let { data = {}, util } = event;
let { vk } = util;
let { accNo, transDate } = data;
if (!accNo) return { code: -1, msg: "accNo不能为空" };
if (!transDate) return { code: -1, msg: "transDate不能为空" };
let res = { code: 0, msg: "" };
let requestRes = await vk.request({
url: "http://jjx-union-pay.gxwebsoft.com/api/union-pay-jjx/getFlow",
method: "POST",
dataType: "json",
header: {
"content-type": "application/json; charset=utf-8"
},
data: {
accNo,
transDate
}
});
res = requestRes;
if (res && typeof res === "object" && typeof res.code === "undefined") {
res.code = 0;
}
return res;
}
}