feat: 补齐客户端/管理端服务模块与数据库 schema,完善登录短信、法大大签署及公共函数

This commit is contained in:
2026-10-14 21:55:08 +08:00
parent 3481fda7a0
commit 55bcf96889
545 changed files with 28151 additions and 415 deletions
@@ -0,0 +1,60 @@
'use strict';
module.exports = {
/**
* XXXnameXXX
* @url client/timedTask/pub/task 前端调用的url参数地址
* data 请求参数
* @param {String} params1 参数1
*/
main: async (event) => {
let {data = {}, userInfo, util, filterResponse, originalParam} = event;
let {customUtil, uniID, config, pubFun, vk, db, _} = util;
let {uid} = data;
let res = {code: 0, msg: ""};
// 业务逻辑开始-----------------------------------------------------------
if (data.key !== 'lsgjoksdjf') return {code: 1, msg: '非法请求'}
// 自动确认收货
const autoConfirm = await vk.baseDao.findById({
dbName: 'jjx-dict',
id: "a72823ff65a4ea8e0730de3d2a14ba3f"
})
const checkRes = await vk.baseDao.select({
dbName: "jjx-order",
whereJson: {
orderStatus: _.in([2, 3]),
expressTime: _.lte(
vk.pubfn.getOffsetTime(new Date(), {
day: parseInt(autoConfirm.content),
mode: "before",
}))
}
})
console.log('checkRes', checkRes)
console.log('checkResDate', vk.pubfn.getOffsetTime(new Date(), {
day: parseInt(autoConfirm.content),
mode: "before",
}))
await vk.baseDao.update({
dbName: "jjx-order",
whereJson: {
orderStatus: _.in([2, 3]),
expressTime: _.lte(
vk.pubfn.getOffsetTime(new Date(), {
day: parseInt(autoConfirm.content),
mode: "before",
}))
},
dataJson: {
orderStatus: 4
}
})
// 业务逻辑结束-----------------------------------------------------------
return res;
}
}