ts-glitter 22.4.3 → 22.4.4

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/lowcode/Entry.js CHANGED
@@ -154,7 +154,7 @@ export class Entry {
154
154
  }
155
155
  window.renderClock = (_b = window.renderClock) !== null && _b !== void 0 ? _b : createClock();
156
156
  console.log(`Entry-time:`, window.renderClock.stop());
157
- glitter.share.editerVersion = 'V_22.4.3';
157
+ glitter.share.editerVersion = 'V_22.4.4';
158
158
  glitter.share.start = new Date();
159
159
  const vm = { appConfig: [] };
160
160
  window.saasConfig = {
package/lowcode/Entry.ts CHANGED
@@ -159,7 +159,7 @@ export class Entry {
159
159
  }
160
160
  (window as any).renderClock = (window as any).renderClock ?? createClock();
161
161
  console.log(`Entry-time:`, (window as any).renderClock.stop());
162
- glitter.share.editerVersion = 'V_22.4.3';
162
+ glitter.share.editerVersion = 'V_22.4.4';
163
163
  glitter.share.start = new Date();
164
164
  const vm = { appConfig: [] };
165
165
  (window as any).saasConfig = {
@@ -772,7 +772,8 @@ export class PosFunction {
772
772
  {
773
773
  title: '購物金折抵',
774
774
  event: (callback) => {
775
- if (!obj.orderData.user_info.id || obj.orderData.user_info.id === 0) {
775
+ console.log(`obj.orderData=>`, obj.orderData);
776
+ if (!obj.orderData.user_info.email && !obj.orderData.user_info.phone) {
776
777
  dialog.errorMessage({ text: '請先添加會員資料' });
777
778
  return;
778
779
  }
@@ -856,7 +856,8 @@ export class PosFunction {
856
856
  {
857
857
  title: '購物金折抵',
858
858
  event: (callback: () => void) => {
859
- if (!obj.orderData.user_info.id || obj.orderData.user_info.id === 0) {
859
+ console.log(`obj.orderData=>`,obj.orderData)
860
+ if (!obj.orderData.user_info.email && !obj.orderData.user_info.phone) {
860
861
  dialog.errorMessage({ text: '請先添加會員資料' });
861
862
  return;
862
863
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "22.4.3",
3
+ "version": "22.4.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -161,7 +161,7 @@ export async function createAPP(dd: any) {
161
161
  return await new Promise((resolve, reject)=>{
162
162
  ServerCache.setCache(`web_cache_${fullUrl}`,async (response:any)=>{
163
163
  response(await SeoConfig.seoDetail(dd.appName as string, req, resp,true))
164
- //進行快取,三秒後清空
164
+ //進行快取,避免高流量負載,三秒後清空
165
165
  setTimeout(()=>{
166
166
  ServerCache.clearCache(`web_cache_${fullUrl}`)
167
167
  },3000)