baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
import SparkMD5 from 'spark-md5';
|
||||
|
||||
module.exports = {
|
||||
generateUUID:function(data) {
|
||||
let formatData = "";
|
||||
let date = new Date();
|
||||
let time = date.getFullYear()+""+date.getMonth()+""+date.getDay();
|
||||
if ('string' == (typeof data)) {
|
||||
formatData = time + data;
|
||||
}
|
||||
if ('object' == (typeof data) && data instanceof Array) {
|
||||
formatData = time + JSON.stringify(data);
|
||||
}
|
||||
console.log("formatData", formatData);
|
||||
console.log("SparkMD5.hash(data)", SparkMD5.hash(formatData));
|
||||
return SparkMD5.hash(formatData);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user