feat:转账插件

This commit is contained in:
2026-07-23 14:31:06 +08:00
parent 4916546322
commit d5a6a16ea5
560 changed files with 71777 additions and 44216 deletions
+8 -1
View File
@@ -237,6 +237,13 @@ export function object(value) {
return Object.prototype.toString.call(value) === '[object Object]'
}
/**
* 是否是Promise对象
*/
export function objectPromise(value) {
return Object.prototype.toString.call(value) === '[object Promise]';
}
/**
* 是否短信验证码
*/
@@ -257,7 +264,7 @@ export function func(value) {
* @param {Object} value
*/
export function promise(value) {
return object(value) && func(value.then) && func(value.catch)
return objectPromise(value) && func(value.then) && func(value.catch)
}
/** 是否图片格式