mingyang_text 2022.3.11 → 2022.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/text.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mingyang_text",
3
- "version": "2022.03.11",
3
+ "version": "2022.08.08",
4
4
  "description": "MingYang Packet",
5
5
  "main": "text.js",
6
6
  "scripts": {
package/text.js CHANGED
@@ -141,6 +141,7 @@ module.exports.do_TimeID_32 = func_TimeID_32;
141
141
  function func_TimeID(args_Digit) {
142
142
  let temp_List = new Array(args_Digit);
143
143
 
144
+ //let temp_PlaceHolder = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
144
145
  let temp_PlaceHolder = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
145
146
 
146
147
  let temp_Time = func_DateTimeToString(null, "yyyy-MMdd-HHmmss-fff");
@@ -151,7 +152,7 @@ function func_TimeID(args_Digit) {
151
152
  temp_List[temp_Time.length] = "-";
152
153
 
153
154
  for (let i = temp_Time.length + 1; i < args_Digit; i++) {
154
- temp_List[i] = temp_PlaceHolder.substr(func_Random(0, temp_PlaceHolder.length), 1);
155
+ temp_List[i] = temp_PlaceHolder[func_Random(0, temp_PlaceHolder.length)];
155
156
  }
156
157
 
157
158
  //temp_List[20] = "-";