ts-glitter 21.9.9 → 22.0.0

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.ts CHANGED
@@ -155,7 +155,7 @@ export class Entry {
155
155
  }
156
156
  (window as any).renderClock = (window as any).renderClock ?? createClock();
157
157
  console.log(`Entry-time:`, (window as any).renderClock.stop());
158
- glitter.share.editerVersion = 'V_21.9.9';
158
+ glitter.share.editerVersion = 'V_22.0.0';
159
159
  glitter.share.start = new Date();
160
160
  const vm = { appConfig: [] };
161
161
  (window as any).saasConfig = {
@@ -17,6 +17,13 @@ export class ApiUser {
17
17
  data: JSON.stringify(json),
18
18
  });
19
19
  if(res_.result){
20
+ try{
21
+ GlobalUser.token = res_.response.token
22
+ GlobalUser.userInfo = res_.response
23
+ GlobalUser.updateUserData = JSON.parse(JSON.stringify(res_.response))
24
+ }catch (e) {
25
+
26
+ }
20
27
  Ad.gtagEvent( 'sign_up', {
21
28
  method: 'normal' // 自訂參數,可略
22
29
  })
@@ -652,6 +659,13 @@ export class ApiUser {
652
659
  data: JSON.stringify(json),
653
660
  });
654
661
  if(res_.response.create_user_success){
662
+ try{
663
+ GlobalUser.token = res_.response.token
664
+ GlobalUser.userInfo = res_.response
665
+ GlobalUser.updateUserData = JSON.parse(JSON.stringify(res_.response))
666
+ }catch (e) {
667
+
668
+ }
655
669
  Ad.gtagEvent( 'sign_up', {
656
670
  method: json.login_type || 'normal' // 自訂參數,可略
657
671
  })
@@ -27,10 +27,10 @@ export class Ad {
27
27
  const obj: any = {};
28
28
 
29
29
  if(GlobalUser.userInfo.email){
30
- obj.email = await hashSHA256(GlobalUser.userInfo.email);
30
+ obj.em = await hashSHA256(GlobalUser.userInfo.email);
31
31
  }
32
32
  if(GlobalUser.userInfo.phone){
33
- obj.phone = await hashSHA256(GlobalUser.userInfo.phone);
33
+ obj.ph = await hashSHA256(GlobalUser.userInfo.phone);
34
34
  }
35
35
  fbq('init', (window as any).fb_pixel_id, obj);
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "21.9.9",
3
+ "version": "22.0.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {