@waline/vercel 1.17.3 → 1.17.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/package.json
CHANGED
|
@@ -127,7 +127,11 @@ module.exports = class extends Base {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
async _getCmtGroupByMailUserIdCache(key, where) {
|
|
130
|
-
if (
|
|
130
|
+
if (
|
|
131
|
+
this.tableName !== 'Comment' ||
|
|
132
|
+
key !== 'user_id_mail' ||
|
|
133
|
+
!think.isArray(think.config('levels'))
|
|
134
|
+
) {
|
|
131
135
|
return [];
|
|
132
136
|
}
|
|
133
137
|
|
|
@@ -140,7 +144,11 @@ module.exports = class extends Base {
|
|
|
140
144
|
}
|
|
141
145
|
|
|
142
146
|
async _setCmtGroupByMailUserIdCache(key, data) {
|
|
143
|
-
if (
|
|
147
|
+
if (
|
|
148
|
+
this.tableName !== 'Comment' ||
|
|
149
|
+
key !== 'user_id_mail' ||
|
|
150
|
+
!think.isArray(think.config('levels'))
|
|
151
|
+
) {
|
|
144
152
|
return;
|
|
145
153
|
}
|
|
146
154
|
|
|
@@ -161,7 +169,10 @@ module.exports = class extends Base {
|
|
|
161
169
|
}
|
|
162
170
|
|
|
163
171
|
async _updateCmtGroupByMailUserIdCache(data, method) {
|
|
164
|
-
if (
|
|
172
|
+
if (
|
|
173
|
+
this.tableName !== 'Comment' ||
|
|
174
|
+
!think.isArray(think.config('levels'))
|
|
175
|
+
) {
|
|
165
176
|
return;
|
|
166
177
|
}
|
|
167
178
|
|