@xuda.io/account_module 1.2.462 → 1.2.464

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.
Files changed (2) hide show
  1. package/index.mjs +8 -15
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1167,7 +1167,7 @@ export const merge_contact = async function (req) {
1167
1167
  };
1168
1168
 
1169
1169
  const get_contact_background = function (doc) {
1170
- const ret = `linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%)`;
1170
+ let ret = `linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%)`;
1171
1171
 
1172
1172
  if (doc.pending) {
1173
1173
  ret = `linear-gradient(145deg, #4f4f4f8c 0%, #0e0f0f44 100%);`;
@@ -1197,28 +1197,21 @@ const get_contact_background = function (doc) {
1197
1197
  };
1198
1198
 
1199
1199
  const get_contact_pattern = function (doc) {
1200
- const ret = `default-pattern.png`;
1200
+ let ret = `default-pattern.png`;
1201
1201
 
1202
1202
  if (doc.contact_uid) {
1203
1203
  ret = `xu-pattern.png`;
1204
1204
  } else {
1205
- switch (doc.contact_mood) {
1206
- case -2: {
1207
- ret = `linear-gradient(145deg, #f60404d8 0%, #7f98e344 100%)`;
1208
- break;
1209
- }
1210
- case -1: {
1211
- ret = `linear-gradient(145deg, #f6040452 0%, #7f98e344 100%)`;
1205
+ switch (doc.source) {
1206
+ case 'email': {
1207
+ ret = `email-pattern.png`;
1212
1208
  break;
1213
1209
  }
1214
- case 1: {
1215
- ret = `linear-gradient(145deg, #04f61452 0%, #7f98e344 100%)`;
1216
- break;
1217
- }
1218
- case 2: {
1219
- ret = `linear-gradient(145deg, #30f604c9 0%, #7f98e344 100%)`;
1210
+ case 'web': {
1211
+ ret = `web-pattern.png`;
1220
1212
  break;
1221
1213
  }
1214
+
1222
1215
  default:
1223
1216
  break;
1224
1217
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.462",
3
+ "version": "1.2.464",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {