ts-glitter 20.6.8 → 20.7.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.js +2 -2
- package/lowcode/Entry.ts +2 -2
- package/lowcode/backend-manager/bg-blog.js +617 -621
- package/lowcode/backend-manager/bg-blog.ts +2323 -2325
- package/lowcode/backend-manager/bg-line.js +5 -4
- package/lowcode/backend-manager/bg-line.ts +5 -4
- package/lowcode/backend-manager/bg-list-component.js +9 -0
- package/lowcode/backend-manager/bg-list-component.ts +15 -1
- package/lowcode/backend-manager/bg-notify.js +6 -4
- package/lowcode/backend-manager/bg-notify.ts +6 -4
- package/lowcode/backend-manager/bg-product.js +145 -0
- package/lowcode/backend-manager/bg-product.ts +153 -0
- package/lowcode/backend-manager/bg-sns.js +5 -3
- package/lowcode/backend-manager/bg-sns.ts +5 -3
- package/lowcode/backend-manager/bg-widget.js +92 -4
- package/lowcode/backend-manager/bg-widget.ts +122 -6
- package/lowcode/backend-manager/splitPage.js +0 -39
- package/lowcode/backend-manager/splitPage.ts +0 -40
- package/lowcode/cms-plugin/auto-fcm-advertise.js +17 -5
- package/lowcode/cms-plugin/auto-fcm-advertise.ts +19 -6
- package/lowcode/cms-plugin/auto-fcm-history.js +2732 -0
- package/lowcode/cms-plugin/auto-fcm-history.ts +2995 -0
- package/lowcode/cms-plugin/cms-router.js +5 -0
- package/lowcode/cms-plugin/cms-router.ts +6 -0
- package/lowcode/cms-plugin/filter-options.js +80 -27
- package/lowcode/cms-plugin/filter-options.ts +83 -27
- package/lowcode/cms-plugin/language-backend.js +50 -39
- package/lowcode/cms-plugin/language-backend.ts +109 -95
- package/lowcode/cms-plugin/menus-setting.js +175 -151
- package/lowcode/cms-plugin/menus-setting.ts +620 -591
- package/lowcode/cms-plugin/model/order.d.ts +1 -0
- package/lowcode/cms-plugin/module/data.js +7 -7
- package/lowcode/cms-plugin/module/data.ts +262 -233
- package/lowcode/cms-plugin/module/delivery-html.js +18 -10
- package/lowcode/cms-plugin/module/delivery-html.ts +26 -10
- package/lowcode/cms-plugin/module/order-setting.js +458 -328
- package/lowcode/cms-plugin/module/order-setting.ts +622 -351
- package/lowcode/cms-plugin/module/product-excel.js +1 -1
- package/lowcode/cms-plugin/module/product-excel.ts +2 -1
- package/lowcode/cms-plugin/order/order-module.js +90 -1
- package/lowcode/cms-plugin/order/order-module.ts +106 -1
- package/lowcode/cms-plugin/pos-pages/payment-page.js +11 -8
- package/lowcode/cms-plugin/pos-pages/payment-page.ts +28 -15
- package/lowcode/cms-plugin/pos-pages/products-page.js +0 -39
- package/lowcode/cms-plugin/pos-pages/products-page.ts +0 -40
- package/lowcode/cms-plugin/shopping-collections.ts +1 -3
- package/lowcode/cms-plugin/shopping-finance-setting.js +19 -80
- package/lowcode/cms-plugin/shopping-finance-setting.ts +19 -87
- package/lowcode/cms-plugin/shopping-order-manager.js +122 -38
- package/lowcode/cms-plugin/shopping-order-manager.ts +160 -58
- package/lowcode/cms-plugin/shopping-product-setting.js +364 -376
- package/lowcode/cms-plugin/shopping-product-setting.ts +406 -415
- package/lowcode/cms-plugin/shopping-setting-advance.js +57 -16
- package/lowcode/cms-plugin/shopping-setting-advance.ts +69 -18
- package/lowcode/cms-plugin/stock-history.js +75 -63
- package/lowcode/cms-plugin/stock-history.ts +390 -376
- package/lowcode/cms-plugin/user/user-module.js +2 -43
- package/lowcode/cms-plugin/user/user-module.ts +2 -46
- package/lowcode/cms-plugin/user-list.js +4 -6
- package/lowcode/cms-plugin/user-list.ts +35 -38
- package/lowcode/css/editor.css +42 -3
- package/lowcode/glitter-base/global/language.js +6 -1
- package/lowcode/glitter-base/global/language.ts +10 -4
- package/lowcode/glitter-base/global/payment-config.js +19 -16
- package/lowcode/glitter-base/global/payment-config.ts +22 -16
- package/lowcode/glitter-base/global/shipment-config.js +6 -5
- package/lowcode/glitter-base/global/shipment-config.ts +12 -10
- package/lowcode/glitter-base/route/fcm.js +21 -1
- package/lowcode/glitter-base/route/fcm.ts +22 -2
- package/lowcode/glitter-base/route/shopping.js +8 -32
- package/lowcode/glitter-base/route/shopping.ts +10 -33
- package/lowcode/glitter-base/route/stock.ts +1 -0
- package/lowcode/glitter-base/route/user.js +11 -2
- package/lowcode/glitter-base/route/user.ts +23 -12
- package/lowcode/jspage/function-page/setting_editor.js +9 -0
- package/lowcode/jspage/function-page/setting_editor.ts +9 -0
- package/lowcode/public-components/blogs/list.js +223 -195
- package/lowcode/public-components/blogs/list.ts +383 -352
- package/lowcode/public-components/product/product-list.js +8 -4
- package/lowcode/public-components/product/product-list.ts +9 -4
- package/lowcode/public-components/terms-related/index.js +1 -1
- package/lowcode/public-components/terms-related/index.ts +1 -1
- package/lowcode/public-components/user-manager/um-login.js +1 -1
- package/lowcode/public-components/user-manager/um-login.ts +2 -2
- package/lowcode/public-components/user-manager/um-order.js +41 -5
- package/lowcode/public-components/user-manager/um-order.ts +58 -20
- package/lowcode/public-components/user-manager/um-voucher.ts +2 -2
- package/nhi4veq3gk.json +1 -0
- package/package.json +1 -1
- package/src/Language.d.ts +2 -0
- package/src/Language.js +66 -65
- package/src/Language.js.map +1 -1
- package/src/Language.ts +719 -715
- package/src/api-public/config/shipment-config.js +3 -2
- package/src/api-public/config/shipment-config.js.map +1 -1
- package/src/api-public/config/shipment-config.ts +3 -2
- package/src/api-public/controllers/ai-chat.js.map +1 -1
- package/src/api-public/controllers/ai-chat.ts +1 -2
- package/src/api-public/controllers/fcm.js +23 -58
- package/src/api-public/controllers/fcm.js.map +1 -1
- package/src/api-public/controllers/fcm.ts +28 -56
- package/src/api-public/controllers/shop.js +7 -1
- package/src/api-public/controllers/shop.js.map +1 -1
- package/src/api-public/controllers/shop.ts +17 -10
- package/src/api-public/controllers/user.js +1 -0
- package/src/api-public/controllers/user.js.map +1 -1
- package/src/api-public/controllers/user.ts +2 -0
- package/src/api-public/services/auto-send-email.js +247 -187
- package/src/api-public/services/auto-send-email.js.map +1 -1
- package/src/api-public/services/auto-send-email.ts +568 -505
- package/src/api-public/services/delivery.js +1 -1
- package/src/api-public/services/delivery.js.map +1 -1
- package/src/api-public/services/delivery.ts +6 -5
- package/src/api-public/services/financial-service.js +1 -2
- package/src/api-public/services/financial-service.js.map +1 -1
- package/src/api-public/services/financial-service.ts +4 -6
- package/src/api-public/services/manager.d.ts +4 -3
- package/src/api-public/services/manager.js +8 -12
- package/src/api-public/services/manager.js.map +1 -1
- package/src/api-public/services/manager.ts +57 -59
- package/src/api-public/services/model/handlePaymentTransaction.d.ts +1 -1
- package/src/api-public/services/model/handlePaymentTransaction.js +23 -3
- package/src/api-public/services/model/handlePaymentTransaction.js.map +1 -1
- package/src/api-public/services/model/handlePaymentTransaction.ts +25 -36
- package/src/api-public/services/schedule.d.ts +1 -0
- package/src/api-public/services/schedule.js +27 -0
- package/src/api-public/services/schedule.js.map +1 -1
- package/src/api-public/services/schedule.ts +30 -0
- package/src/api-public/services/shopping.d.ts +22 -2
- package/src/api-public/services/shopping.js +371 -95
- package/src/api-public/services/shopping.js.map +1 -1
- package/src/api-public/services/shopping.ts +499 -141
- package/src/api-public/services/stock.js +0 -3
- package/src/api-public/services/stock.js.map +1 -1
- package/src/api-public/services/stock.ts +3 -3
- package/src/api-public/services/user.d.ts +1 -0
- package/src/api-public/services/user.js +32 -12
- package/src/api-public/services/user.js.map +1 -1
- package/src/api-public/services/user.ts +38 -19
- package/src/api-public/services/workers.js +3 -3
- package/src/api-public/services/workers.js.map +1 -1
- package/src/api-public/services/workers.ts +103 -103
- package/src/app-project/ios/proshake/AppDelegate.swift +51 -7
- package/src/app-project/ios/proshake/Info.plist +11 -9
- package/src/app-project/ios/proshake/SceneDelegate.swift +18 -0
- package/src/app-project/ios/proshake/glitter-interface/BasicUtil.swift +43 -2
- package/src/app-project/ios/proshake/glitter-interface/Ecommerce.swift +56 -0
- package/src/app-project/ios/proshake.xcodeproj/project.xcworkspace/xcuserdata/jianzhi.wang.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/src/app-project/serverless/src/modules/database.js +1 -1
- package/src/app-project/serverless/src/modules/database.js.map +1 -1
- package/src/app-project/serverless/src/modules/database.ts +171 -171
- package/src/controllers/template.d.ts +1 -1
- package/src/controllers/template.js +16 -16
- package/src/controllers/template.js.map +1 -1
- package/src/controllers/template.ts +98 -84
- package/src/modules/database.js +3 -1
- package/src/modules/database.js.map +1 -1
- package/src/modules/database.ts +185 -181
- package/src/modules/firebase.d.ts +17 -0
- package/src/modules/firebase.js +126 -0
- package/src/modules/firebase.js.map +1 -1
- package/src/modules/firebase.ts +169 -0
- package/src/public-config-initial/auto-fcm.js +8 -2
- package/src/public-config-initial/auto-fcm.js.map +1 -1
- package/src/public-config-initial/auto-fcm.ts +15 -6
- package/src/services/app.d.ts +2 -1
- package/src/services/app.js.map +1 -1
- package/src/services/app.ts +2 -1
- package/src/services/ios-project.js +12 -6
- package/src/services/ios-project.js.map +1 -1
- package/src/services/ios-project.ts +12 -6
- package/src/services/template.d.ts +3 -2
- package/src/services/template.js +2 -1
- package/src/services/template.js.map +1 -1
- package/src/services/template.ts +13 -20
|
@@ -5,527 +5,590 @@ import db from '../../modules/database.js';
|
|
|
5
5
|
import exception from '../../modules/exception.js';
|
|
6
6
|
|
|
7
7
|
export class AutoSendEmail {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
8
|
+
public static async getDefCompare(app: string, tag: string, language: string) {
|
|
9
|
+
const dataList: any = [
|
|
10
|
+
{
|
|
11
|
+
tag: 'auto-email-shipment',
|
|
12
|
+
tag_name: '商品出貨',
|
|
13
|
+
name: '@{{app_name}}',
|
|
14
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 出貨中',
|
|
15
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 出貨中',
|
|
16
|
+
toggle: true,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
tag: 'auto-email-in-stock',
|
|
20
|
+
tag_name: '商品備貨',
|
|
21
|
+
name: '@{{app_name}}',
|
|
22
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 備貨中',
|
|
23
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 備貨中',
|
|
24
|
+
toggle: true,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
tag: 'auto-sns-shipment',
|
|
28
|
+
tag_name: '簡訊通知商品出貨',
|
|
29
|
+
name: '@{{app_name}}',
|
|
30
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 出貨中',
|
|
31
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 出貨中',
|
|
32
|
+
toggle: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
tag: 'auto-line-shipment',
|
|
36
|
+
tag_name: 'line訊息通知商品出貨',
|
|
37
|
+
name: '@{{app_name}}',
|
|
38
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 出貨中',
|
|
39
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 出貨中',
|
|
40
|
+
toggle: true,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
tag: 'auto-line-in-stock',
|
|
44
|
+
tag_name: 'line訊息通知商品備貨',
|
|
45
|
+
name: '@{{app_name}}',
|
|
46
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 備貨中',
|
|
47
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 備貨中',
|
|
48
|
+
toggle: true,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
tag: 'auto-fb-shipment',
|
|
52
|
+
tag_name: 'fb訊息通知商品出貨',
|
|
53
|
+
name: '@{{app_name}}',
|
|
54
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 出貨中',
|
|
55
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 出貨中',
|
|
56
|
+
toggle: true,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
tag: 'auto-email-shipment-arrival',
|
|
60
|
+
tag_name: '商品到貨',
|
|
61
|
+
name: '@{{app_name}}',
|
|
62
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 已到達',
|
|
63
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 已到達',
|
|
64
|
+
toggle: true,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
tag: 'auto-sns-shipment-arrival',
|
|
68
|
+
tag_name: '簡訊通知商品到貨',
|
|
69
|
+
name: '@{{app_name}}',
|
|
70
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 已到達',
|
|
71
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 已到達',
|
|
72
|
+
toggle: true,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
tag: 'auto-line-shipment-arrival',
|
|
76
|
+
tag_name: 'line訊息通知商品到貨',
|
|
77
|
+
name: '@{{app_name}}',
|
|
78
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 已到達',
|
|
79
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 已到達',
|
|
80
|
+
toggle: true,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
tag: 'auto-fb-shipment-arrival',
|
|
84
|
+
tag_name: 'fb訊息通知商品到貨',
|
|
85
|
+
name: '@{{app_name}}',
|
|
86
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 已到達',
|
|
87
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 送貨狀態 更新為: 已到達',
|
|
88
|
+
toggle: true,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
tag: 'auto-email-order-create',
|
|
92
|
+
tag_name: '訂單成立',
|
|
93
|
+
name: '@{{app_name}}',
|
|
94
|
+
title: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已成立',
|
|
95
|
+
content: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已成立',
|
|
96
|
+
toggle: true,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
tag: 'auto-sns-order-create',
|
|
100
|
+
tag_name: '簡訊通知訂單成立',
|
|
101
|
+
name: '@{{app_name}}',
|
|
102
|
+
title: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已成立',
|
|
103
|
+
content: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已成立',
|
|
104
|
+
toggle: true,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
tag: 'auto-line-order-create',
|
|
108
|
+
tag_name: 'ling通知訂單成立',
|
|
109
|
+
name: '@{{app_name}}',
|
|
110
|
+
title: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已成立',
|
|
111
|
+
content: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已成立',
|
|
112
|
+
toggle: true,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
tag: 'auto-fb-order-create',
|
|
116
|
+
tag_name: 'fb通知訂單成立',
|
|
117
|
+
name: '@{{app_name}}',
|
|
118
|
+
title: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已成立',
|
|
119
|
+
content: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已成立',
|
|
120
|
+
toggle: true,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
tag: 'auto-email-payment-successful',
|
|
124
|
+
tag_name: '訂單付款成功',
|
|
125
|
+
name: '@{{app_name}}',
|
|
126
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 付款狀態 更新為: 已付款',
|
|
127
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 付款狀態 更新為: 已付款',
|
|
128
|
+
toggle: true,
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
tag: 'auto-sns-payment-successful',
|
|
132
|
+
tag_name: '簡訊通知訂單付款成功',
|
|
133
|
+
name: '@{{app_name}}',
|
|
134
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 付款狀態 更新為: 已付款',
|
|
135
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 付款狀態 更新為: 已付款',
|
|
136
|
+
toggle: true,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
tag: 'auto-line-payment-successful',
|
|
140
|
+
tag_name: 'line訊息通知訂單付款成功',
|
|
141
|
+
name: '@{{app_name}}',
|
|
142
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 付款狀態 更新為: 已付款',
|
|
143
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 付款狀態 更新為: 已付款',
|
|
144
|
+
toggle: true,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
tag: 'auto-fb-payment-successful',
|
|
148
|
+
tag_name: 'fb訊息通知訂單付款成功',
|
|
149
|
+
name: '@{{app_name}}',
|
|
150
|
+
title: '[@{{app_name}}] #@{{訂單號碼}} 付款狀態 更新為: 已付款',
|
|
151
|
+
content: '[@{{app_name}}] #@{{訂單號碼}} 付款狀態 更新為: 已付款',
|
|
152
|
+
toggle: true,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
tag: 'proof-purchase',
|
|
156
|
+
tag_name: '訂單待核款',
|
|
157
|
+
name: '@{{app_name}}',
|
|
158
|
+
title: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已進入待核款',
|
|
159
|
+
content: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已進入待核款',
|
|
160
|
+
toggle: true,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
tag: 'sns-proof-purchase',
|
|
164
|
+
tag_name: '簡訊通知訂單待核款',
|
|
165
|
+
name: '@{{app_name}}',
|
|
166
|
+
title: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已進入待核款',
|
|
167
|
+
content: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已進入待核款',
|
|
168
|
+
toggle: true,
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
tag: 'line-proof-purchase',
|
|
172
|
+
tag_name: 'line訊息通知訂單待核款',
|
|
173
|
+
name: '@{{app_name}}',
|
|
174
|
+
title: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已進入待核款',
|
|
175
|
+
content: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已進入待核款',
|
|
176
|
+
toggle: true,
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
tag: 'fb-proof-purchase',
|
|
180
|
+
tag_name: 'fb訊息通知訂單待核款',
|
|
181
|
+
name: '@{{app_name}}',
|
|
182
|
+
title: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已進入待核款',
|
|
183
|
+
content: '[@{{app_name}}] 您的訂單 #@{{訂單號碼}} 已進入待核款',
|
|
184
|
+
toggle: true,
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
tag: 'auto-email-order-cancel-success',
|
|
188
|
+
tag_name: '取消訂單成功',
|
|
189
|
+
name: '@{{app_name}}',
|
|
190
|
+
title: '[@{{app_name}}] 您已成功取消訂單 #@{{訂單號碼}}',
|
|
191
|
+
content: '[@{{app_name}}] 您已成功取消訂單 #@{{訂單號碼}}',
|
|
192
|
+
toggle: true,
|
|
193
|
+
},
|
|
178
194
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
return b;
|
|
195
|
+
{
|
|
196
|
+
tag: 'auto-email-order-cancel-false',
|
|
197
|
+
tag_name: '取消訂單失敗',
|
|
198
|
+
name: '@{{app_name}}',
|
|
199
|
+
title: '[@{{app_name}}] 取消訂單申請 #@{{訂單號碼}} 已失敗',
|
|
200
|
+
content: '[@{{app_name}}] 取消訂單申請 #@{{訂單號碼}} 已失敗',
|
|
201
|
+
toggle: true,
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
tag: 'auto-email-birthday',
|
|
205
|
+
tag_name: '生日祝福',
|
|
206
|
+
name: '@{{app_name}}',
|
|
207
|
+
title: '[@{{app_name}}] [@{{user_name}}] 今天是您一年一度的大日子!祝您生日快樂!',
|
|
208
|
+
content: '[@{{app_name}}] [@{{user_name}}] 今天是您一年一度的大日子!祝您生日快樂!',
|
|
209
|
+
toggle: true,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
tag: 'auto-sns-birthday',
|
|
213
|
+
tag_name: '簡訊通知生日祝福',
|
|
214
|
+
name: '@{{app_name}}',
|
|
215
|
+
title: '[@{{app_name}}] [@{{user_name}}] 今天是您一年一度的大日子!祝您生日快樂!',
|
|
216
|
+
content: '[@{{app_name}}] [@{{user_name}}] 今天是您一年一度的大日子!祝您生日快樂!',
|
|
217
|
+
toggle: true,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
tag: 'auto-line-birthday',
|
|
221
|
+
tag_name: 'line訊息通知生日祝福',
|
|
222
|
+
name: '@{{app_name}}',
|
|
223
|
+
title: '[@{{app_name}}] [@{{user_name}}] 今天是您一年一度的大日子!祝您生日快樂!',
|
|
224
|
+
content: '[@{{app_name}}] [@{{user_name}}] 今天是您一年一度的大日子!祝您生日快樂!',
|
|
225
|
+
toggle: true,
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
tag: 'auto-email-welcome',
|
|
229
|
+
tag_name: '歡迎信件',
|
|
230
|
+
name: '@{{app_name}}',
|
|
231
|
+
title: '[@{{app_name}}] 歡迎您加入@{{app_name}}! 最豐富的選品商店',
|
|
232
|
+
content: '[@{{app_name}}] 歡迎您加入@{{app_name}}! 最豐富的選品商店',
|
|
233
|
+
toggle: true,
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
tag: 'auto-email-verify',
|
|
237
|
+
tag_name: '信箱驗證',
|
|
238
|
+
name: '@{{app_name}}',
|
|
239
|
+
title: '[@{{app_name}}] 帳號認證通知',
|
|
240
|
+
content: '嗨!歡迎加入 @{{app_name}},請輸入驗證碼「 @{{code}} 」。請於一分鐘內輸入並完成驗證。',
|
|
241
|
+
toggle: true,
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
tag: 'auto-email-verify-update',
|
|
245
|
+
tag_name: '信箱驗證',
|
|
246
|
+
name: '@{{app_name}}',
|
|
247
|
+
title: '[@{{app_name}}] 信箱認證通知',
|
|
248
|
+
content: '請輸入驗證碼「 @{{code}} 」。請於五分鐘內輸入並完成驗證。',
|
|
249
|
+
toggle: true,
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
tag: 'auto-phone-verify-update',
|
|
253
|
+
tag_name: '電話認證',
|
|
254
|
+
name: '@{{app_name}}',
|
|
255
|
+
title: '[@{{app_name}}] 帳號認證通知',
|
|
256
|
+
content: '請輸入驗證碼「 @{{code}} 」。請於五分鐘內輸入並完成驗證。',
|
|
257
|
+
toggle: true,
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
tag: 'auto-phone-verify',
|
|
261
|
+
tag_name: '電話認證',
|
|
262
|
+
name: '@{{app_name}}',
|
|
263
|
+
title: '[@{{app_name}}] 帳號認證通知',
|
|
264
|
+
content: '嗨!歡迎加入 @{{app_name}},請輸入驗證碼「 @{{code}} 」。請於一分鐘內輸入並完成驗證。',
|
|
265
|
+
toggle: true,
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
tag: 'auto-email-forget',
|
|
269
|
+
tag_name: '忘記密碼',
|
|
270
|
+
name: '@{{app_name}}',
|
|
271
|
+
title: '[@{{app_name}}] 重設密碼',
|
|
272
|
+
content: '[@{{app_name}}],請輸入驗證碼「 @{{code}} 」。請於一分鐘內輸入並完成驗證。',
|
|
273
|
+
toggle: true,
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
tag: 'get-customer-message',
|
|
277
|
+
tag_name: '客服訊息',
|
|
278
|
+
name: '@{{app_name}}',
|
|
279
|
+
title: '[@{{app_name}}] 收到客服訊息',
|
|
280
|
+
content: this.getCustomerMessageHTML(),
|
|
281
|
+
toggle: true,
|
|
282
|
+
},
|
|
283
|
+
];
|
|
284
|
+
const keyData = await new User(app).getConfigV2({
|
|
285
|
+
key: tag,
|
|
286
|
+
user_id: 'manager',
|
|
287
|
+
});
|
|
288
|
+
const appData = await new User(app).getConfigV2({
|
|
289
|
+
key: 'store-information',
|
|
290
|
+
user_id: 'manager',
|
|
291
|
+
});
|
|
292
|
+
const b = dataList.find((dd: any) => {
|
|
293
|
+
return dd.tag === tag;
|
|
294
|
+
})!;
|
|
295
|
+
if (b) {
|
|
296
|
+
if (keyData) {
|
|
297
|
+
const c = keyData[language] || keyData;
|
|
298
|
+
b.title = c.title || b.title;
|
|
299
|
+
b.toggle = keyData.toggle ?? true;
|
|
300
|
+
b.content = c.content || b.content;
|
|
301
|
+
b.name = c.name || b.name;
|
|
302
|
+
b.updated_time = new Date(keyData.updated_time);
|
|
303
|
+
}
|
|
304
|
+
Object.keys(b).map(dd => {
|
|
305
|
+
if (typeof b[dd] === 'string') {
|
|
306
|
+
b[dd] = b[dd].replace(/@\{\{app_name\}\}/g, (appData && appData.shop_name) || '商店名稱');
|
|
294
307
|
}
|
|
295
|
-
|
|
308
|
+
});
|
|
309
|
+
return b;
|
|
296
310
|
}
|
|
311
|
+
return {};
|
|
312
|
+
}
|
|
297
313
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
314
|
+
public static getCustomerMessageHTML() {
|
|
315
|
+
const html = String.raw;
|
|
316
|
+
return html` <table
|
|
317
|
+
width="100%"
|
|
318
|
+
border="0"
|
|
319
|
+
cellpadding="0"
|
|
320
|
+
cellspacing="0"
|
|
321
|
+
style="box-sizing: border-box; caption-side: bottom; border-collapse: collapse; -webkit-font-smoothing: antialiased; border: none; empty-cells: show; max-width: 100%; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; background-color: rgb(255, 255, 255);"
|
|
322
|
+
id="isPasted"
|
|
323
|
+
>
|
|
324
|
+
<tbody
|
|
325
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
326
|
+
>
|
|
327
|
+
<tr
|
|
328
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
307
329
|
>
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
330
|
+
<td
|
|
331
|
+
style="box-sizing: border-box; border: 0px solid rgb(221, 221, 221); -webkit-font-smoothing: antialiased; user-select: text; min-width: 5px;"
|
|
332
|
+
>
|
|
333
|
+
<table
|
|
334
|
+
align="center"
|
|
335
|
+
width="100%"
|
|
336
|
+
border="0"
|
|
337
|
+
cellpadding="0"
|
|
338
|
+
cellspacing="0"
|
|
339
|
+
style="box-sizing: border-box; caption-side: bottom; border-collapse: collapse; -webkit-font-smoothing: antialiased; --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; display: flex; flex-wrap: wrap; margin-top: calc(-1 * var(--bs-gutter-y)); margin-right: calc(-0.5 * var(--bs-gutter-x)); margin-left: calc(-0.5 * var(--bs-gutter-x)); border: none; empty-cells: show; max-width: 100%;"
|
|
340
|
+
>
|
|
341
|
+
<tbody
|
|
342
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased; flex-shrink: 0; width: 1055.59px; max-width: 100%; padding-right: calc(var(--bs-gutter-x) * 0.5); padding-left: calc(var(--bs-gutter-x) * 0.5); margin-top: var(--bs-gutter-y);"
|
|
343
|
+
>
|
|
344
|
+
<tr
|
|
345
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
346
|
+
>
|
|
347
|
+
<td
|
|
348
|
+
style="box-sizing: border-box; border: 0px solid rgb(221, 221, 221); -webkit-font-smoothing: antialiased; user-select: text; min-width: 5px;"
|
|
349
|
+
>
|
|
350
|
+
<table
|
|
351
|
+
align="center"
|
|
352
|
+
border="0"
|
|
353
|
+
cellpadding="0"
|
|
354
|
+
cellspacing="0"
|
|
355
|
+
width="600"
|
|
356
|
+
style="box-sizing: border-box; caption-side: bottom; border-collapse: collapse; -webkit-font-smoothing: antialiased; border: none; empty-cells: show; max-width: 100%; color: rgb(0, 0, 0); width: 600px; margin: 0px auto;"
|
|
357
|
+
>
|
|
358
|
+
<tbody
|
|
359
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
360
|
+
>
|
|
361
|
+
<tr
|
|
362
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
318
363
|
>
|
|
319
|
-
|
|
320
|
-
|
|
364
|
+
<td
|
|
365
|
+
width="100%"
|
|
366
|
+
style="box-sizing: border-box; border: 0px; -webkit-font-smoothing: antialiased; user-select: text; min-width: 5px; font-weight: 400; text-align: left; padding-bottom: 5px; padding-top: 5px; vertical-align: top;"
|
|
367
|
+
>
|
|
368
|
+
<table
|
|
369
|
+
width="100%"
|
|
370
|
+
border="0"
|
|
371
|
+
cellpadding="0"
|
|
372
|
+
cellspacing="0"
|
|
373
|
+
style="box-sizing: border-box; caption-side: bottom; border-collapse: collapse; -webkit-font-smoothing: antialiased; border: none; empty-cells: show; max-width: 100%;"
|
|
321
374
|
>
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
<div align="center" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; line-height: 10px;">
|
|
351
|
-
<div style="box-sizing: border-box; -webkit-font-smoothing: antialiased; max-width: 600px;">
|
|
352
|
-
<img
|
|
353
|
-
src="https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/1719903595261-s3s4scs3s7sfsfs7.png"
|
|
354
|
-
class="fr-fic fr-dii"
|
|
355
|
-
style="width: 100%;"
|
|
356
|
-
/>
|
|
357
|
-
<br />
|
|
358
|
-
</div>
|
|
359
|
-
</div>
|
|
360
|
-
</td>
|
|
361
|
-
</tr>
|
|
362
|
-
</tbody>
|
|
363
|
-
</table>
|
|
375
|
+
<tbody
|
|
376
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
377
|
+
>
|
|
378
|
+
<tr
|
|
379
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
380
|
+
>
|
|
381
|
+
<td
|
|
382
|
+
style="box-sizing: border-box; border: 1px solid rgb(221, 221, 221); -webkit-font-smoothing: antialiased; user-select: text; min-width: 5px; width: 599px;"
|
|
383
|
+
>
|
|
384
|
+
<div
|
|
385
|
+
align="center"
|
|
386
|
+
style="box-sizing: border-box; -webkit-font-smoothing: antialiased; line-height: 10px;"
|
|
387
|
+
>
|
|
388
|
+
<div
|
|
389
|
+
style="box-sizing: border-box; -webkit-font-smoothing: antialiased; max-width: 600px;"
|
|
390
|
+
>
|
|
391
|
+
<img
|
|
392
|
+
src="https://d3jnmi1tfjgtti.cloudfront.net/file/234285319/1719903595261-s3s4scs3s7sfsfs7.png"
|
|
393
|
+
class="fr-fic fr-dii"
|
|
394
|
+
style="width: 100%;"
|
|
395
|
+
/>
|
|
396
|
+
<br />
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
</td>
|
|
400
|
+
</tr>
|
|
401
|
+
</tbody>
|
|
402
|
+
</table>
|
|
364
403
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
404
|
+
<table
|
|
405
|
+
width="100%"
|
|
406
|
+
border="0"
|
|
407
|
+
cellpadding="0"
|
|
408
|
+
cellspacing="0"
|
|
409
|
+
style="box-sizing: border-box; caption-side: bottom; border-collapse: collapse; -webkit-font-smoothing: antialiased; border: none; empty-cells: show; max-width: 100%;"
|
|
410
|
+
>
|
|
411
|
+
<tbody
|
|
412
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
413
|
+
>
|
|
414
|
+
<tr
|
|
415
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
416
|
+
>
|
|
417
|
+
<td
|
|
418
|
+
style="box-sizing: border-box; border: 1px solid rgb(221, 221, 221); -webkit-font-smoothing: antialiased; user-select: text; min-width: 5px; padding: 60px 45px 30px; text-align: left; width: 599px;"
|
|
419
|
+
>
|
|
420
|
+
<h1
|
|
421
|
+
style="box-sizing: border-box; margin: 0px; font-weight: 700; line-height: 33.6px; color: rgb(54, 54, 54); font-size: 28px; -webkit-font-smoothing: antialiased; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; direction: ltr; font-family: Arial, Helvetica, sans-serif; text-align: left;"
|
|
422
|
+
id="isPasted"
|
|
423
|
+
>
|
|
424
|
+
客服訊息
|
|
425
|
+
</h1>
|
|
426
|
+
<br />
|
|
427
|
+
<div style="width: 100%;text-align: start;">@{{text}}</div>
|
|
428
|
+
<br />
|
|
429
|
+
<br /><span
|
|
430
|
+
style="color: rgb(16, 17, 18); font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"
|
|
431
|
+
><a
|
|
432
|
+
href="@{{link}}"
|
|
433
|
+
target="_blank"
|
|
434
|
+
style="box-sizing: border-box; color: rgb(255, 255, 255); text-decoration: none; -webkit-font-smoothing: antialiased; transition: color 0.2s ease-in-out 0s; user-select: auto; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 148, 2); border-width: 0px; border-style: solid; border-color: transparent; border-radius: 5px; display: inline-block; font-family: Arial, Helvetica, sans-serif; font-size: 24px; padding-bottom: 15px; padding-top: 15px; text-align: center; width: auto; word-break: keep-all;"
|
|
435
|
+
id="isPasted"
|
|
436
|
+
><span
|
|
437
|
+
style="box-sizing: border-box; -webkit-font-smoothing: antialiased; padding-left: 30px; padding-right: 30px; font-size: 24px; display: inline-block; letter-spacing: normal;"
|
|
438
|
+
><span
|
|
439
|
+
style="box-sizing: border-box; -webkit-font-smoothing: antialiased; word-break: break-word; line-height: 48px;"
|
|
440
|
+
><strong
|
|
441
|
+
style="box-sizing: border-box; font-weight: 700; -webkit-font-smoothing: antialiased;"
|
|
442
|
+
>前往商店</strong
|
|
443
|
+
></span
|
|
444
|
+
></span
|
|
445
|
+
></a
|
|
446
|
+
></span
|
|
447
|
+
>
|
|
448
|
+
<br />
|
|
449
|
+
</td>
|
|
450
|
+
</tr>
|
|
451
|
+
</tbody>
|
|
452
|
+
</table>
|
|
409
453
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
454
|
+
<table
|
|
455
|
+
width="100%"
|
|
456
|
+
border="0"
|
|
457
|
+
cellpadding="0"
|
|
458
|
+
cellspacing="0"
|
|
459
|
+
style="box-sizing: border-box; caption-side: bottom; border-collapse: collapse; -webkit-font-smoothing: antialiased; border: none; empty-cells: show; max-width: 100%; word-break: break-word; background-color: rgb(247, 247, 247);"
|
|
460
|
+
>
|
|
461
|
+
<tbody
|
|
462
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
463
|
+
>
|
|
464
|
+
<tr
|
|
465
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
466
|
+
>
|
|
467
|
+
<td
|
|
468
|
+
style="box-sizing: border-box; border: 1px solid rgb(221, 221, 221); -webkit-font-smoothing: antialiased; user-select: text; min-width: 5px; padding: 28px 45px 10px;"
|
|
469
|
+
>
|
|
470
|
+
<div
|
|
471
|
+
style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(16, 17, 18); direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-weight: 400; letter-spacing: 0px; line-height: 19.2px; text-align: left;"
|
|
472
|
+
>
|
|
473
|
+
<p
|
|
474
|
+
style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1.25rem; -webkit-font-smoothing: antialiased;"
|
|
475
|
+
>
|
|
476
|
+
如果您有任何疑問或需要幫助,我們的團隊隨時在這裡為您提供支持。
|
|
477
|
+
</p>
|
|
428
478
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
479
|
+
<p
|
|
480
|
+
style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1.25rem; -webkit-font-smoothing: antialiased;"
|
|
481
|
+
>
|
|
482
|
+
服務電話:+886 978-028-730
|
|
483
|
+
</p>
|
|
432
484
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
485
|
+
<p
|
|
486
|
+
style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1.25rem; -webkit-font-smoothing: antialiased;"
|
|
487
|
+
>
|
|
488
|
+
電子郵件:mk@ncdesign.info
|
|
489
|
+
</p>
|
|
490
|
+
</div>
|
|
491
|
+
</td>
|
|
492
|
+
</tr>
|
|
493
|
+
</tbody>
|
|
494
|
+
</table>
|
|
441
495
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
</table>
|
|
489
|
-
</td>
|
|
496
|
+
<table
|
|
497
|
+
width="100%"
|
|
498
|
+
border="0"
|
|
499
|
+
cellpadding="0"
|
|
500
|
+
cellspacing="0"
|
|
501
|
+
style="box-sizing: border-box; caption-side: bottom; border-collapse: collapse; -webkit-font-smoothing: antialiased; border: none; empty-cells: show; max-width: 100%; word-break: break-word; background-color: rgb(247, 247, 247);"
|
|
502
|
+
>
|
|
503
|
+
<tbody
|
|
504
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
505
|
+
>
|
|
506
|
+
<tr
|
|
507
|
+
style="box-sizing: border-box; border-color: inherit; border-style: solid; border-width: 0px; -webkit-font-smoothing: antialiased;"
|
|
508
|
+
>
|
|
509
|
+
<td
|
|
510
|
+
style="box-sizing: border-box; border: 1px solid rgb(221, 221, 221); -webkit-font-smoothing: antialiased; user-select: text; min-width: 5px; padding: 20px 10px 10px;"
|
|
511
|
+
>
|
|
512
|
+
<div
|
|
513
|
+
style="box-sizing: border-box; -webkit-font-smoothing: antialiased; color: rgb(16, 17, 18); direction: ltr; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0px; line-height: 16.8px; text-align: center;"
|
|
514
|
+
>
|
|
515
|
+
<p
|
|
516
|
+
style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1.25rem; -webkit-font-smoothing: antialiased;"
|
|
517
|
+
>
|
|
518
|
+
<a
|
|
519
|
+
href="https://shopnex.tw/?article=termsofservice&page=blog_detail"
|
|
520
|
+
target="_blank"
|
|
521
|
+
rel="noopener"
|
|
522
|
+
style="box-sizing: border-box; color: rgb(28, 28, 28); text-decoration: underline; -webkit-font-smoothing: antialiased; transition: color 0.2s ease-in-out 0s; user-select: auto;"
|
|
523
|
+
>服務條款</a
|
|
524
|
+
>
|
|
525
|
+
<a
|
|
526
|
+
href="https://shopnex.tw/?article=privacyterms&page=blog_detail"
|
|
527
|
+
target="_blank"
|
|
528
|
+
rel="noopener"
|
|
529
|
+
style="box-sizing: border-box; color: rgb(28, 28, 28); text-decoration: underline; -webkit-font-smoothing: antialiased; transition: color 0.2s ease-in-out 0s; user-select: auto;"
|
|
530
|
+
>隱私條款</a
|
|
531
|
+
>
|
|
532
|
+
<a
|
|
533
|
+
href="https://shopnex.tw/?article=privacyterms&page=e-commerce-blog"
|
|
534
|
+
target="_blank"
|
|
535
|
+
rel="noopener"
|
|
536
|
+
style="box-sizing: border-box; color: rgb(28, 28, 28); text-decoration: underline; -webkit-font-smoothing: antialiased; transition: color 0.2s ease-in-out 0s; user-select: auto;"
|
|
537
|
+
>開店教學</a
|
|
538
|
+
>
|
|
539
|
+
</p>
|
|
540
|
+
</div>
|
|
541
|
+
</td>
|
|
490
542
|
</tr>
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
543
|
+
</tbody>
|
|
544
|
+
</table>
|
|
545
|
+
</td>
|
|
546
|
+
</tr>
|
|
547
|
+
</tbody>
|
|
548
|
+
</table>
|
|
549
|
+
</td>
|
|
494
550
|
</tr>
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
551
|
+
</tbody>
|
|
552
|
+
</table>
|
|
553
|
+
</td>
|
|
554
|
+
</tr>
|
|
555
|
+
</tbody>
|
|
556
|
+
</table>`;
|
|
557
|
+
}
|
|
498
558
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
559
|
+
public static async customerOrder(app: string, tag: string, order_id: string, email: string, language: string) {
|
|
560
|
+
try {
|
|
561
|
+
const customerMail = await this.getDefCompare(app, tag, language);
|
|
562
|
+
const brandAndMemberType = await App.checkBrandAndMemberType(app);
|
|
563
|
+
const order = await db.query(
|
|
564
|
+
`SELECT * FROM \`${app}\`.t_checkout WHERE cart_token = ?
|
|
505
565
|
`,
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
console.error(error);
|
|
528
|
-
throw exception.BadRequestError('BAD_REQUEST', 'customerOrder Error:' + error, null);
|
|
566
|
+
[order_id]
|
|
567
|
+
);
|
|
568
|
+
if (order[0]) {
|
|
569
|
+
const order_data = order[0]['orderData'];
|
|
570
|
+
if (customerMail.toggle) {
|
|
571
|
+
await new Mail(app).postMail({
|
|
572
|
+
name: customerMail.name,
|
|
573
|
+
title: customerMail.title.replace(/@\{\{訂單號碼\}\}/g, order_id),
|
|
574
|
+
content: customerMail.content
|
|
575
|
+
.replace(
|
|
576
|
+
/@\{\{訂單號碼\}\}/g,
|
|
577
|
+
`<a href="https://${brandAndMemberType.domain}/order_detail?cart_token=${order_id}">${order_id}</a>`
|
|
578
|
+
)
|
|
579
|
+
.replace(/@\{\{訂單金額\}\}/g, order_data.total)
|
|
580
|
+
.replace(/@\{\{姓名\}\}/g, order_data.customer_info.name ?? '')
|
|
581
|
+
.replace(/@\{\{電話\}\}/g, order_data.customer_info.phone ?? '')
|
|
582
|
+
.replace(/@\{\{地址\}\}/g, order_data.user_info.address ?? '')
|
|
583
|
+
.replace(/@\{\{信箱\}\}/g, order_data.customer_info.email ?? ''),
|
|
584
|
+
email: [email],
|
|
585
|
+
type: tag,
|
|
586
|
+
});
|
|
529
587
|
}
|
|
588
|
+
}
|
|
589
|
+
} catch (error) {
|
|
590
|
+
console.error(error);
|
|
591
|
+
throw exception.BadRequestError('BAD_REQUEST', 'customerOrder Error:' + error, null);
|
|
530
592
|
}
|
|
593
|
+
}
|
|
531
594
|
}
|