biz9-logic 4.8.353 → 4.8.355
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.
- package/biz9_config +1 -1
- package/index.js +24 -32
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -261,9 +261,9 @@ class Type {
|
|
|
261
261
|
static IMAGE_SIZE_SQUARE_LARGE="squre_large";
|
|
262
262
|
|
|
263
263
|
//re_size
|
|
264
|
-
static
|
|
265
|
-
static
|
|
266
|
-
static
|
|
264
|
+
static IMAGE_RESIZE_NORMAL="normal";
|
|
265
|
+
static IMAGE_RESIZE_SQUARE="squre";
|
|
266
|
+
static IMAGE_RESIZE_NONE="none";
|
|
267
267
|
|
|
268
268
|
static get_title = (type,option)=>{
|
|
269
269
|
/* option
|
|
@@ -351,26 +351,18 @@ class Type {
|
|
|
351
351
|
case DataType.USER:
|
|
352
352
|
case DataType.VIDEO:
|
|
353
353
|
r_type = String(Str.get_title(type.replaceAll('_',' ').replaceAll('dt','').replace('biz',''))).trim();
|
|
354
|
-
console.log(r_type);
|
|
355
|
-
console.log('11111111');
|
|
356
354
|
break;
|
|
357
355
|
default:
|
|
358
356
|
r_type = "N/A";
|
|
359
357
|
break;
|
|
360
358
|
}
|
|
361
|
-
console.log(type);
|
|
362
|
-
console.log('aaaaa');
|
|
363
|
-
console.log(r_type);
|
|
364
359
|
if(option.get_plural){
|
|
365
|
-
console.log('bbbbbbbb');
|
|
366
360
|
r_type = r_type + 's';
|
|
367
361
|
}
|
|
368
362
|
if(option.get_lowercase){
|
|
369
|
-
console.log('cccccccc');
|
|
370
363
|
r_type = r_type.toLowerCase();
|
|
371
364
|
}
|
|
372
365
|
if(option.get_url){
|
|
373
|
-
console.log('dddddddd');
|
|
374
366
|
r_type = r_type.replace(" ","_").toLowerCase();
|
|
375
367
|
}
|
|
376
368
|
return r_type;
|
|
@@ -1630,46 +1622,46 @@ class Image_Logic {
|
|
|
1630
1622
|
image_filename = image_filename ? image_filename : "";
|
|
1631
1623
|
return [
|
|
1632
1624
|
{
|
|
1633
|
-
image_filename:Type.
|
|
1634
|
-
path_filename:upload_dir+"/"+Type.
|
|
1625
|
+
image_filename:Type.IMAGE_SIZE_ORIGINAL+"_"+image_filename,
|
|
1626
|
+
path_filename:upload_dir+"/"+Type.IMAGE_SIZE_ORIGINAL+"_"+image_filename,
|
|
1635
1627
|
size:0,
|
|
1636
|
-
type_resize:Type.
|
|
1628
|
+
type_resize:Type.IMAGE_RESIZE_NONE,
|
|
1637
1629
|
},
|
|
1638
1630
|
{
|
|
1639
|
-
image_filename:Type.
|
|
1640
|
-
path_filename:upload_dir+"/"+
|
|
1631
|
+
image_filename:Type.IMAGE_SIZE_THUMB+"_"+image_filename,
|
|
1632
|
+
path_filename:upload_dir+"/"+Type.IMAGE_SIZE_THUMB+"_"+image_filename,
|
|
1641
1633
|
size:250,
|
|
1642
|
-
type_resize:
|
|
1634
|
+
type_resize:Type.IMAGE_RESIZE_NORMAL,
|
|
1643
1635
|
},
|
|
1644
1636
|
{
|
|
1645
|
-
image_filename:
|
|
1646
|
-
path_filename:upload_dir+"/"+
|
|
1637
|
+
image_filename:Type.IMAGE_SIZE_MID+"_"+image_filename,
|
|
1638
|
+
path_filename:upload_dir+"/"+Type.IMAGE_SIZE_MID+"_"+image_filename,
|
|
1647
1639
|
size:720,
|
|
1648
|
-
type_resize:
|
|
1640
|
+
type_resize:Type.IMAGE_RESIZE_NORMAL,
|
|
1649
1641
|
},
|
|
1650
1642
|
{
|
|
1651
|
-
image_filename:
|
|
1652
|
-
path_filename:upload_dir+"/"+
|
|
1643
|
+
image_filename:Type.IMAGE_SIZE_LARGE+"_"+image_filename,
|
|
1644
|
+
path_filename:upload_dir+"/"+Type.IMAGE_SIZE_LARGE+"_"+image_filename,
|
|
1653
1645
|
size:1000,
|
|
1654
|
-
type_resize:
|
|
1646
|
+
type_resize:Type.IMAGE_RESIZE_NORMAL,
|
|
1655
1647
|
},
|
|
1656
1648
|
{
|
|
1657
|
-
image_filename:
|
|
1658
|
-
path_filename:upload_dir+"/"+
|
|
1649
|
+
image_filename:Type.IMAGE_SIZE_SQUARE_THUMB+"_"+image_filename,
|
|
1650
|
+
path_filename:upload_dir+"/"+Type.IMAGE_SIZE_SQUARE_THUMB+"_"+image_filename,
|
|
1659
1651
|
size:250,
|
|
1660
|
-
type_resize:
|
|
1652
|
+
type_resize:Type.IMAGE_RESIZE_SQUARE,
|
|
1661
1653
|
},
|
|
1662
1654
|
{
|
|
1663
|
-
image_filename:
|
|
1664
|
-
path_filename:upload_dir+"/"+
|
|
1655
|
+
image_filename:Type.IMAGE_SIZE_SQUARE_MID+"_"+image_filename,
|
|
1656
|
+
path_filename:upload_dir+"/"+Type.IMAGE_SIZE_SQUARE_MID+"_"+image_filename,
|
|
1665
1657
|
size:720,
|
|
1666
|
-
type_resize:
|
|
1658
|
+
type_resize:Type.IMAGE_RESIZE_SQUARE,
|
|
1667
1659
|
},
|
|
1668
1660
|
{
|
|
1669
|
-
image_filename:
|
|
1670
|
-
path_filename:upload_dir+"/"+
|
|
1661
|
+
image_filename:Type.IMAGE_SIZE_SQUARE_LARGE+"_"+image_filename,
|
|
1662
|
+
path_filename:upload_dir+"/"+Type.IMAGE_SIZE_SQUARE_LARGE+"_"+image_filename,
|
|
1671
1663
|
size:1000,
|
|
1672
|
-
type_resize:
|
|
1664
|
+
type_resize:Type.IMAGE_RESIZE_SQUARE,
|
|
1673
1665
|
},
|
|
1674
1666
|
];
|
|
1675
1667
|
}
|