Browse Source

处理认证接口

reghao 3 năm trước cách đây
mục cha
commit
54703cd24d

+ 12 - 261
package-lock.json

@@ -1104,36 +1104,6 @@
         "postcss": "^7.0.0"
       }
     },
-    "@mapbox/jsonlint-lines-primitives": {
-      "version": "2.0.2",
-      "resolved": "https://registry.npmmirror.com/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz",
-      "integrity": "sha512-rY0o9A5ECsTQRVhv7tL/OyDpGAoUB4tTvLiW1DSzQGq4bvTPhNw1VpSNjDJc5GFZ2XuyOtSWSVN05qOtcD71qQ=="
-    },
-    "@mapbox/mapbox-gl-style-spec": {
-      "version": "13.23.1",
-      "resolved": "https://registry.npmmirror.com/@mapbox/mapbox-gl-style-spec/-/mapbox-gl-style-spec-13.23.1.tgz",
-      "integrity": "sha512-C6wh8A/5EdsgzhL6y6yl464VCQNIxK0yjrpnvCvchcFe3sNK2RbBw/J9u3m+p8Y6S6MsGuSMt3AkGAXOKMYweQ==",
-      "requires": {
-        "@mapbox/jsonlint-lines-primitives": "~2.0.2",
-        "@mapbox/point-geometry": "^0.1.0",
-        "@mapbox/unitbezier": "^0.0.0",
-        "csscolorparser": "~1.0.2",
-        "json-stringify-pretty-compact": "^2.0.0",
-        "minimist": "^1.2.5",
-        "rw": "^1.3.3",
-        "sort-object": "^0.3.2"
-      }
-    },
-    "@mapbox/point-geometry": {
-      "version": "0.1.0",
-      "resolved": "https://registry.npmmirror.com/@mapbox/point-geometry/-/point-geometry-0.1.0.tgz",
-      "integrity": "sha512-6j56HdLTwWGO0fJPlrZtdU/B13q8Uwmo18Ck2GnGgN9PCFyKTZ3UbXeEdRFh18i9XQ92eH2VdtpJHpBD3aripQ=="
-    },
-    "@mapbox/unitbezier": {
-      "version": "0.0.0",
-      "resolved": "https://registry.npmmirror.com/@mapbox/unitbezier/-/unitbezier-0.0.0.tgz",
-      "integrity": "sha512-HPnRdYO0WjFjRTSwO3frz1wKaU649OBFPX3Zo/2WZvuRi6zMiRGui8SnPQiQABgqCf8YikDe5t3HViTVw1WUzA=="
-    },
     "@mrmlnc/readdir-enhanced": {
       "version": "2.2.1",
       "resolved": "https://registry.npm.taobao.org/@mrmlnc/readdir-enhanced/download/@mrmlnc/readdir-enhanced-2.2.1.tgz",
@@ -1150,11 +1120,6 @@
       "integrity": "sha1-K1o6s/kYzKSKjHVMCBaOPwPrphs=",
       "dev": true
     },
-    "@petamoriken/float16": {
-      "version": "3.6.3",
-      "resolved": "https://registry.npmmirror.com/@petamoriken/float16/-/float16-3.6.3.tgz",
-      "integrity": "sha512-Yx6Z93kmz3JVPYoPPRFJXnt2/G4kfaxRROcZVVHsE4zOClJXvkOVidv/JfvP6hWn16lykbKYKVzUsId6mqXdGg=="
-    },
     "@soda/friendly-errors-webpack-plugin": {
       "version": "1.7.1",
       "resolved": "https://registry.npm.taobao.org/@soda/friendly-errors-webpack-plugin/download/@soda/friendly-errors-webpack-plugin-1.7.1.tgz",
@@ -2327,6 +2292,7 @@
       "version": "1.0.10",
       "resolved": "https://registry.npm.taobao.org/argparse/download/argparse-1.0.10.tgz",
       "integrity": "sha1-vNZ5HqWuCXJeF+WtmIE0zUCz2RE=",
+      "dev": true,
       "requires": {
         "sprintf-js": "~1.0.2"
       }
@@ -2703,34 +2669,6 @@
       "integrity": "sha1-nyKcFb4nJFT/qXOs4NvueaGww28=",
       "dev": true
     },
-    "bmaplib.curveline": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmmirror.com/bmaplib.curveline/-/bmaplib.curveline-1.0.0.tgz",
-      "integrity": "sha512-9wcFMVhiYxNPqpvsLDAADn3qDhNzXp2mA6VyHSHg2XOAgSooC7ZiujdFhy0sp+0QYjTfJ/MjmLuNoUg2HHxH4Q=="
-    },
-    "bmaplib.heatmap": {
-      "version": "1.0.4",
-      "resolved": "https://registry.npmmirror.com/bmaplib.heatmap/-/bmaplib.heatmap-1.0.4.tgz",
-      "integrity": "sha512-rmhqUARBpUSJ9jXzUI2j7dIOqnc38bqubkx/8a349U2qtw/ulLUwyzRD535OrA8G7w5cz4aPKm6/rNvUAarg/Q=="
-    },
-    "bmaplib.lushu": {
-      "version": "1.0.7",
-      "resolved": "https://registry.npmmirror.com/bmaplib.lushu/-/bmaplib.lushu-1.0.7.tgz",
-      "integrity": "sha512-LVvgpESPii6xGxyjnQjq8u+ic4NjvhdCPV/RiSS/PGTUdZKeTDS7prSpleJLZH3ES0+oc0gYn8bw0LtPYUSz2w=="
-    },
-    "bmaplib.markerclusterer": {
-      "version": "1.0.13",
-      "resolved": "https://registry.npmmirror.com/bmaplib.markerclusterer/-/bmaplib.markerclusterer-1.0.13.tgz",
-      "integrity": "sha512-VrLyWSiuDEVNi0yUfwOhFQ6z1oEEHS4w36GNu3iASu6p52QIx9uAXMUkuSCHReNR0bj2Cp9SA1dSx5RpojXajQ==",
-      "requires": {
-        "bmaplib.texticonoverlay": "^1.0.2"
-      }
-    },
-    "bmaplib.texticonoverlay": {
-      "version": "1.0.2",
-      "resolved": "https://registry.npmmirror.com/bmaplib.texticonoverlay/-/bmaplib.texticonoverlay-1.0.2.tgz",
-      "integrity": "sha512-4ZTWr4ZP3B6qEWput5Tut16CfZgII38YwM3bpyb4gFTQyORlKYryFp9WHWrwZZaHlOyYDAXG9SX0hka43jTADg=="
-    },
     "bn.js": {
       "version": "5.1.3",
       "resolved": "https://registry.npm.taobao.org/bn.js/download/bn.js-5.1.3.tgz",
@@ -4054,11 +3992,6 @@
       "integrity": "sha1-EP7Glqns4uWRrHctdZqsq6w4zTk=",
       "dev": true
     },
-    "csscolorparser": {
-      "version": "1.0.3",
-      "resolved": "https://registry.npmmirror.com/csscolorparser/-/csscolorparser-1.0.3.tgz",
-      "integrity": "sha512-umPSgYwZkdFoUrH5hIq5kf0wPSXiro51nPw0j2K/c83KflkPSTBGMz6NJvMB+07VlL0y7VPo6QJcDjcgKTTm3w=="
-    },
     "cssesc": {
       "version": "3.0.0",
       "resolved": "https://registry.npm.taobao.org/cssesc/download/cssesc-3.0.0.tgz",
@@ -5880,27 +5813,6 @@
       "integrity": "sha1-WPQ2H/mH5f9uHnohCCeqNx6qwmk=",
       "dev": true
     },
-    "geotiff": {
-      "version": "2.0.5",
-      "resolved": "https://registry.npmmirror.com/geotiff/-/geotiff-2.0.5.tgz",
-      "integrity": "sha512-U5kVYm118YAmw2swiLu8rhfrYnDKOFI7VaMjuQwcq6Intuuid9Pyb4jjxYUxxkq8kOu2r7Am0Rmb52PObGp4pQ==",
-      "requires": {
-        "@petamoriken/float16": "^3.4.7",
-        "lerc": "^3.0.0",
-        "pako": "^2.0.4",
-        "parse-headers": "^2.0.2",
-        "quick-lru": "^6.1.0",
-        "web-worker": "^1.2.0",
-        "xml-utils": "^1.0.2"
-      },
-      "dependencies": {
-        "pako": {
-          "version": "2.0.4",
-          "resolved": "https://registry.npmmirror.com/pako/-/pako-2.0.4.tgz",
-          "integrity": "sha512-v8tweI900AUkZN6heMU/4Uy4cXRc2AYNRggVmTR+dEncawDJgCdLMximOVA2p4qO57WMynangsfGRb5WD6L1Bg=="
-        }
-      }
-    },
     "get-caller-file": {
       "version": "2.0.5",
       "resolved": "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz",
@@ -6432,7 +6344,8 @@
     "ieee754": {
       "version": "1.1.13",
       "resolved": "https://registry.npm.taobao.org/ieee754/download/ieee754-1.1.13.tgz",
-      "integrity": "sha1-7BaFWOlaoYH9h9N/VcMrvLZwi4Q="
+      "integrity": "sha1-7BaFWOlaoYH9h9N/VcMrvLZwi4Q=",
+      "dev": true
     },
     "iferr": {
       "version": "0.1.5",
@@ -7097,6 +7010,11 @@
       "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
       "dev": true
     },
+    "jsencrypt": {
+      "version": "3.2.1",
+      "resolved": "https://registry.npmmirror.com/jsencrypt/-/jsencrypt-3.2.1.tgz",
+      "integrity": "sha512-k1sD5QV0KPn+D8uG9AdGzTQuamt82QZ3A3l6f7TRwMU6Oi2Vg0BsL+wZIQBONcraO1pc78ExMdvmBBJ8WhNYUA=="
+    },
     "jsesc": {
       "version": "2.5.2",
       "resolved": "https://registry.npm.taobao.org/jsesc/download/jsesc-2.5.2.tgz",
@@ -7133,11 +7051,6 @@
       "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
       "dev": true
     },
-    "json-stringify-pretty-compact": {
-      "version": "2.0.0",
-      "resolved": "https://registry.npmmirror.com/json-stringify-pretty-compact/-/json-stringify-pretty-compact-2.0.0.tgz",
-      "integrity": "sha512-WRitRfs6BGq4q8gTgOy4ek7iPFXjbra0H3PmDLKm2xnZ+Gh1HUhiKGgCZkSPNULlP7mvfu6FV/mOLhCarspADQ=="
-    },
     "json-stringify-safe": {
       "version": "5.0.1",
       "resolved": "https://registry.npm.taobao.org/json-stringify-safe/download/json-stringify-safe-5.0.1.tgz",
@@ -7210,11 +7123,6 @@
         "launch-editor": "^2.2.1"
       }
     },
-    "lerc": {
-      "version": "3.0.0",
-      "resolved": "https://registry.npmmirror.com/lerc/-/lerc-3.0.0.tgz",
-      "integrity": "sha512-Rm4J/WaHhRa93nCN2mwWDZFoRVF18G1f47C+kvQWyHGEZxFpTUi73p7lMVSAndyxGt6lJ2/CFbOcf9ra5p8aww=="
-    },
     "leven": {
       "version": "3.1.0",
       "resolved": "https://registry.npm.taobao.org/leven/download/leven-3.1.0.tgz",
@@ -7254,14 +7162,6 @@
       "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=",
       "dev": true
     },
-    "linkify-it": {
-      "version": "2.2.0",
-      "resolved": "https://registry.npmmirror.com/linkify-it/-/linkify-it-2.2.0.tgz",
-      "integrity": "sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw==",
-      "requires": {
-        "uc.micro": "^1.0.1"
-      }
-    },
     "loader-fs-cache": {
       "version": "1.0.3",
       "resolved": "https://registry.npm.taobao.org/loader-fs-cache/download/loader-fs-cache-1.0.3.tgz",
@@ -7465,30 +7365,6 @@
         "object-visit": "^1.0.0"
       }
     },
-    "mapbox-to-css-font": {
-      "version": "2.4.1",
-      "resolved": "https://registry.npmmirror.com/mapbox-to-css-font/-/mapbox-to-css-font-2.4.1.tgz",
-      "integrity": "sha512-QQ/iKiM43DM9+aujTL45Iz5o7gDeSFmy4LPl3HZmNcwCE++NxGazf+yFpY+wCb+YS23sDa1ghpo3zrNFOcHlow=="
-    },
-    "markdown-it": {
-      "version": "8.4.2",
-      "resolved": "https://registry.npmmirror.com/markdown-it/-/markdown-it-8.4.2.tgz",
-      "integrity": "sha512-GcRz3AWTqSUphY3vsUqQSFMbgR38a4Lh3GWlHRh/7MRwz8mcu9n2IO7HOh+bXHrR9kOPDl5RNCaEsrneb+xhHQ==",
-      "requires": {
-        "argparse": "^1.0.7",
-        "entities": "~1.1.1",
-        "linkify-it": "^2.0.0",
-        "mdurl": "^1.0.1",
-        "uc.micro": "^1.0.5"
-      },
-      "dependencies": {
-        "entities": {
-          "version": "1.1.2",
-          "resolved": "https://registry.npmmirror.com/entities/-/entities-1.1.2.tgz",
-          "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w=="
-        }
-      }
-    },
     "md5.js": {
       "version": "1.3.5",
       "resolved": "https://registry.npm.taobao.org/md5.js/download/md5.js-1.3.5.tgz",
@@ -7506,11 +7382,6 @@
       "integrity": "sha1-aZs8OKxvHXKAkaZGULZdOIUC/Vs=",
       "dev": true
     },
-    "mdurl": {
-      "version": "1.0.1",
-      "resolved": "https://registry.npmmirror.com/mdurl/-/mdurl-1.0.1.tgz",
-      "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g=="
-    },
     "media-typer": {
       "version": "0.3.0",
       "resolved": "https://registry.npm.taobao.org/media-typer/download/media-typer-0.3.0.tgz",
@@ -7694,7 +7565,8 @@
     "minimist": {
       "version": "1.2.5",
       "resolved": "https://registry.npm.taobao.org/minimist/download/minimist-1.2.5.tgz?cache=0&sync_timestamp=1584051509720&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fminimist%2Fdownload%2Fminimist-1.2.5.tgz",
-      "integrity": "sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI="
+      "integrity": "sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI=",
+      "dev": true
     },
     "minipass": {
       "version": "3.1.3",
@@ -8236,27 +8108,6 @@
       "integrity": "sha1-Cb6jND1BhZ69RGKS0RydTbYZCE4=",
       "dev": true
     },
-    "ol": {
-      "version": "6.14.1",
-      "resolved": "https://registry.npmmirror.com/ol/-/ol-6.14.1.tgz",
-      "integrity": "sha512-sIcUWkGud3Y2gT3TJubSHlkyMXiPVh1yxfCPHxmY8+qtm79bB9oRnei9xHVIbRRG0Ro6Ldp5E+BMVSvYCxSpaA==",
-      "requires": {
-        "geotiff": "^2.0.2",
-        "ol-mapbox-style": "^7.1.1",
-        "pbf": "3.2.1",
-        "rbush": "^3.0.1"
-      }
-    },
-    "ol-mapbox-style": {
-      "version": "7.1.1",
-      "resolved": "https://registry.npmmirror.com/ol-mapbox-style/-/ol-mapbox-style-7.1.1.tgz",
-      "integrity": "sha512-GLTEYiH/Ec9Zn1eS4S/zXyR2sierVrUc+OLVP8Ra0FRyqRhoYbXdko0b7OIeSHWdtJfHssWYefDOGxfTRUUZ/A==",
-      "requires": {
-        "@mapbox/mapbox-gl-style-spec": "^13.20.1",
-        "mapbox-to-css-font": "^2.4.1",
-        "webfont-matcher": "^1.1.0"
-      }
-    },
     "on-finished": {
       "version": "2.3.0",
       "resolved": "https://registry.npm.taobao.org/on-finished/download/on-finished-2.3.0.tgz",
@@ -8477,11 +8328,6 @@
         "safe-buffer": "^5.1.1"
       }
     },
-    "parse-headers": {
-      "version": "2.0.5",
-      "resolved": "https://registry.npmmirror.com/parse-headers/-/parse-headers-2.0.5.tgz",
-      "integrity": "sha512-ft3iAoLOB/MlwbNXgzy43SWGP6sQki2jQvAyBg/zDFAgr9bfNWZIUj42Kw2eJIl8kEi4PbgE6U1Zau/HwI75HA=="
-    },
     "parse-json": {
       "version": "5.1.0",
       "resolved": "https://registry.npm.taobao.org/parse-json/download/parse-json-5.1.0.tgz?cache=0&sync_timestamp=1598129273895&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fparse-json%2Fdownload%2Fparse-json-5.1.0.tgz",
@@ -8585,15 +8431,6 @@
         }
       }
     },
-    "pbf": {
-      "version": "3.2.1",
-      "resolved": "https://registry.npmmirror.com/pbf/-/pbf-3.2.1.tgz",
-      "integrity": "sha512-ClrV7pNOn7rtmoQVF4TS1vyU0WhYRnP92fzbfF75jAIwpnzdJXf8iTd4CMEqO4yUenH6NDqLiwjqlh6QgZzgLQ==",
-      "requires": {
-        "ieee754": "^1.1.12",
-        "resolve-protobuf-schema": "^2.1.0"
-      }
-    },
     "pbkdf2": {
       "version": "3.1.1",
       "resolved": "https://registry.npm.taobao.org/pbkdf2/download/pbkdf2-3.1.1.tgz",
@@ -9329,11 +9166,6 @@
       "resolved": "https://registry.npm.taobao.org/promise-polyfill/download/promise-polyfill-8.1.3.tgz",
       "integrity": "sha1-jJmzz1PzqRxoIm/9573oHX+QQRY="
     },
-    "protocol-buffers-schema": {
-      "version": "3.6.0",
-      "resolved": "https://registry.npmmirror.com/protocol-buffers-schema/-/protocol-buffers-schema-3.6.0.tgz",
-      "integrity": "sha512-TdDRD+/QNdrCGCE7v8340QyuXd4kIWIgapsE2+n/SaGiSSbomYl4TjHlvIoCWRpE7wFt02EpB35VVA2ImcBVqw=="
-    },
     "proxy-addr": {
       "version": "2.0.6",
       "resolved": "https://registry.npm.taobao.org/proxy-addr/download/proxy-addr-2.0.6.tgz?cache=0&sync_timestamp=1582556112011&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fproxy-addr%2Fdownload%2Fproxy-addr-2.0.6.tgz",
@@ -9463,16 +9295,6 @@
       "integrity": "sha1-M0WUG0FTy50ILY7uTNogFqmu9/Y=",
       "dev": true
     },
-    "quick-lru": {
-      "version": "6.1.1",
-      "resolved": "https://registry.npmmirror.com/quick-lru/-/quick-lru-6.1.1.tgz",
-      "integrity": "sha512-S27GBT+F0NTRiehtbrgaSE1idUAJ5bX8dPAQTdylEyNlrdcH5X4Lz7Edz3DYzecbsCluD5zO8ZNEe04z3D3u6Q=="
-    },
-    "quickselect": {
-      "version": "2.0.0",
-      "resolved": "https://registry.npmmirror.com/quickselect/-/quickselect-2.0.0.tgz",
-      "integrity": "sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw=="
-    },
     "randombytes": {
       "version": "2.1.0",
       "resolved": "https://registry.npm.taobao.org/randombytes/download/randombytes-2.1.0.tgz",
@@ -9510,14 +9332,6 @@
         "unpipe": "1.0.0"
       }
     },
-    "rbush": {
-      "version": "3.0.1",
-      "resolved": "https://registry.npmmirror.com/rbush/-/rbush-3.0.1.tgz",
-      "integrity": "sha512-XRaVO0YecOpEuIvbhbpTrZgoiI6xBlz6hnlr6EHhd+0x9ase6EmeN+hdwwUaJvLcsFFQ8iWVF1GAK1yB0BWi0w==",
-      "requires": {
-        "quickselect": "^2.0.0"
-      }
-    },
     "read-pkg": {
       "version": "5.2.0",
       "resolved": "https://registry.npm.taobao.org/read-pkg/download/read-pkg-5.2.0.tgz",
@@ -9829,14 +9643,6 @@
       "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=",
       "dev": true
     },
-    "resolve-protobuf-schema": {
-      "version": "2.1.0",
-      "resolved": "https://registry.npmmirror.com/resolve-protobuf-schema/-/resolve-protobuf-schema-2.1.0.tgz",
-      "integrity": "sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==",
-      "requires": {
-        "protocol-buffers-schema": "^3.3.1"
-      }
-    },
     "resolve-url": {
       "version": "0.2.1",
       "resolved": "https://registry.npm.taobao.org/resolve-url/download/resolve-url-0.2.1.tgz?cache=0&sync_timestamp=1585438700247&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fresolve-url%2Fdownload%2Fresolve-url-0.2.1.tgz",
@@ -9911,11 +9717,6 @@
         "aproba": "^1.1.1"
       }
     },
-    "rw": {
-      "version": "1.3.3",
-      "resolved": "https://registry.npmmirror.com/rw/-/rw-1.3.3.tgz",
-      "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
-    },
     "rxjs": {
       "version": "6.6.2",
       "resolved": "https://registry.npm.taobao.org/rxjs/download/rxjs-6.6.2.tgz?cache=0&sync_timestamp=1599146096588&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frxjs%2Fdownload%2Frxjs-6.6.2.tgz",
@@ -10463,16 +10264,6 @@
         }
       }
     },
-    "sort-asc": {
-      "version": "0.1.0",
-      "resolved": "https://registry.npmmirror.com/sort-asc/-/sort-asc-0.1.0.tgz",
-      "integrity": "sha512-jBgdDd+rQ+HkZF2/OHCmace5dvpos/aWQpcxuyRs9QUbPRnkEJmYVo81PIGpjIdpOcsnJ4rGjStfDHsbn+UVyw=="
-    },
-    "sort-desc": {
-      "version": "0.1.1",
-      "resolved": "https://registry.npmmirror.com/sort-desc/-/sort-desc-0.1.1.tgz",
-      "integrity": "sha512-jfZacW5SKOP97BF5rX5kQfJmRVZP5/adDUTY8fCSPvNcXDVpUEe2pr/iKGlcyZzchRJZrswnp68fgk3qBXgkJw=="
-    },
     "sort-keys": {
       "version": "1.1.2",
       "resolved": "https://registry.npm.taobao.org/sort-keys/download/sort-keys-1.1.2.tgz",
@@ -10482,15 +10273,6 @@
         "is-plain-obj": "^1.0.0"
       }
     },
-    "sort-object": {
-      "version": "0.3.2",
-      "resolved": "https://registry.npmmirror.com/sort-object/-/sort-object-0.3.2.tgz",
-      "integrity": "sha512-aAQiEdqFTTdsvUFxXm3umdo04J7MRljoVGbBlkH7BgNsMvVNAJyGj7C/wV1A8wHWAJj/YikeZbfuCKqhggNWGA==",
-      "requires": {
-        "sort-asc": "^0.1.0",
-        "sort-desc": "^0.1.1"
-      }
-    },
     "source-list-map": {
       "version": "2.0.1",
       "resolved": "https://registry.npm.taobao.org/source-list-map/download/source-list-map-2.0.1.tgz",
@@ -10624,7 +10406,8 @@
     "sprintf-js": {
       "version": "1.0.3",
       "resolved": "https://registry.npm.taobao.org/sprintf-js/download/sprintf-js-1.0.3.tgz",
-      "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
+      "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
+      "dev": true
     },
     "sshpk": {
       "version": "1.16.1",
@@ -11262,11 +11045,6 @@
       "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
       "dev": true
     },
-    "uc.micro": {
-      "version": "1.0.6",
-      "resolved": "https://registry.npmmirror.com/uc.micro/-/uc.micro-1.0.6.tgz",
-      "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA=="
-    },
     "uglify-js": {
       "version": "3.4.10",
       "resolved": "https://registry.npm.taobao.org/uglify-js/download/uglify-js-3.4.10.tgz",
@@ -11644,18 +11422,6 @@
       "resolved": "https://registry.npm.taobao.org/vue/download/vue-2.6.12.tgz?cache=0&sync_timestamp=1599065174070&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue%2Fdownload%2Fvue-2.6.12.tgz",
       "integrity": "sha1-9evU+mvShpQD4pqJau1JBEVskSM="
     },
-    "vue-baidu-map": {
-      "version": "0.21.22",
-      "resolved": "https://registry.npmmirror.com/vue-baidu-map/-/vue-baidu-map-0.21.22.tgz",
-      "integrity": "sha512-WQMPCih4UTh0AZCKKH/OVOYnyAWjfRNeK6BIeoLmscyY5aF8zzlJhz/NOHLb3mdztIpB0Z6aohn4Jd9mfCSjQw==",
-      "requires": {
-        "bmaplib.curveline": "^1.0.0",
-        "bmaplib.heatmap": "^1.0.4",
-        "bmaplib.lushu": "^1.0.7",
-        "bmaplib.markerclusterer": "^1.0.13",
-        "markdown-it": "^8.4.0"
-      }
-    },
     "vue-cli-plugin-vuetify": {
       "version": "2.0.7",
       "resolved": "https://registry.npm.taobao.org/vue-cli-plugin-vuetify/download/vue-cli-plugin-vuetify-2.0.7.tgz",
@@ -12048,16 +11814,6 @@
         "defaults": "^1.0.3"
       }
     },
-    "web-worker": {
-      "version": "1.2.0",
-      "resolved": "https://registry.npmmirror.com/web-worker/-/web-worker-1.2.0.tgz",
-      "integrity": "sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA=="
-    },
-    "webfont-matcher": {
-      "version": "1.1.0",
-      "resolved": "https://registry.npmmirror.com/webfont-matcher/-/webfont-matcher-1.1.0.tgz",
-      "integrity": "sha512-ov8lMvF9wi4PD7fK2Axn9PQEpO9cYI0fIoGqErwd+wi8xacFFDmX114D5Q2Lw0Wlgmb+Qw/dKI2KTtimrJf85g=="
-    },
     "webpack": {
       "version": "4.44.2",
       "resolved": "https://registry.npm.taobao.org/webpack/download/webpack-4.44.2.tgz?cache=0&sync_timestamp=1601458500642&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack%2Fdownload%2Fwebpack-4.44.2.tgz",
@@ -12773,11 +12529,6 @@
         "generate-source-map": "0.0.5"
       }
     },
-    "xml-utils": {
-      "version": "1.0.2",
-      "resolved": "https://registry.npmmirror.com/xml-utils/-/xml-utils-1.0.2.tgz",
-      "integrity": "sha512-rEn0FvKi+YGjv9omf22oAf+0d6Ly/sgJ/CUufU/nOzS7SRLmgwSujrewc03KojXxt+aPaTRpm593TgehtUBMSQ=="
-    },
     "xtend": {
       "version": "4.0.2",
       "resolved": "https://registry.npm.taobao.org/xtend/download/xtend-4.0.2.tgz",

+ 1 - 0
package.json

@@ -21,6 +21,7 @@
     "flv.js": "^1.6.2",
     "hls.js": "^1.1.2",
     "js-cookie": "2.2.0",
+    "jsencrypt": "^3.2.1",
     "shaka-player": "^3.2.1",
     "v-viewer": "^1.6.4",
     "vue": "^2.6.12",

BIN
public/images/top.png


+ 5 - 3
src/api/index.js

@@ -50,10 +50,12 @@ $axios.interceptors.response.use(
       loading.close()
     }
     if (error.response) {
-      switch (error.response.status) {
+      const statusCode = error.response.status
+      const res = error.response.data
+      switch (statusCode) {
         case 401:
-          // 返回401 清除token信息并跳转到登陆页面
-          console.log('401 错误...')
+          alert(res.data)
+          // 返回 401 清除token信息并跳转到登陆页面
           store.commit('delToken')
           router.replace({
             path: '/login',

+ 6 - 0
src/api/user/auth.js

@@ -1,10 +1,16 @@
 import $axios from '../index'
 
 const authApi = {
+  pubkeyApi: '/api/auth/pubkey',
   loginApi: '/api/auth/login',
   logoutApi: '/api/auth/logout'
 }
 
+// 登录
+export function getPubkey() {
+  return $axios.get(authApi.pubkeyApi)
+}
+
 // 登录
 export function login(loginData) {
   return $axios.post(authApi.loginApi, loginData)

+ 1 - 1
src/components/comment/video-comment.vue

@@ -7,7 +7,7 @@
     </v-row>
     <v-row>
       <v-col cols="2" style="padding-top: 0px;">
-        <router-link v-if="this.$store.state.user.userInfo" :to="`/user/${this.$store.state.user.userInfo.id}`">
+        <router-link v-if="this.$store.state.user.userInfo" :to="`/user/${this.$store.state.user.userInfo.userId}`">
           <v-avatar size="62">
             <v-img
               :src="this.$store.state.user.userInfo.avatarUrl"

+ 24 - 2
src/components/login-form.vue

@@ -51,6 +51,8 @@
 
 <script>
 import { randomString, getCaptchaUrl } from '@/utils'
+import { getPubkey } from '@/api/user/auth'
+import { JSEncrypt } from 'jsencrypt'
 
 export default {
   name: 'LoginFrom',
@@ -62,16 +64,25 @@ export default {
       username: '',
       password: '',
       captcha: '',
-      rememberMe: false
+      rememberMe: false,
+      pubkey: ''
     }
   },
   created() {
     this.getCaptcha()
+    this.fetchPubkey()
   },
   methods: {
+    encryptPassword(password) {
+      var encryptor = new JSEncrypt()
+      encryptor.setPublicKey(this.pubkey)
+      const r = encryptor.encrypt(password)
+      console.log(r)
+    },
     submitLogin() {
       const username = this.username
-      const password = this.password
+      const password = this.$options.methods.encryptPassword(this.password)
+      // const password = this.password
       const captcha = this.captcha
       const r = this.r
       const rememberMe = this.rememberMe
@@ -101,6 +112,17 @@ export default {
       this.r = randomString(10)
       // 图片上发送点击事件时,captchaUrl 的值发生变化,然后才去请求后端
       this.captchaUrl = getCaptchaUrl(this.r)
+    },
+    fetchPubkey() {
+      getPubkey().then(res => {
+        if (res.code === 0) {
+          this.pubkey = res.data
+        } else {
+          alert(res.data)
+        }
+      }).catch(error => {
+        console.error(error.message)
+      })
     }
   }
 }

+ 1 - 1
src/components/player/live-player.vue

@@ -23,7 +23,7 @@ export default {
   mounted() {
     const userInfo = this.$store.state.user.userInfo
     if (userInfo != null) {
-      this.userId = userInfo.id.toString()
+      this.userId = userInfo.userId.toString()
     } else {
       this.userId = 111222333
     }

+ 1 - 1
src/components/player/player.vue

@@ -23,7 +23,7 @@ export default {
   mounted() {
     const userInfo = this.$store.state.user.userInfo
     if (userInfo != null) {
-      this.userId = userInfo.id.toString()
+      this.userId = userInfo.userId.toString()
     } else {
       this.userId = 110101
     }

+ 1 - 1
src/components/player/player1.vue

@@ -22,7 +22,7 @@ export default {
   mounted() {
     const userInfo = this.$store.state.user.userInfo
     if (userInfo != null) {
-      this.userId = userInfo.id.toString()
+      this.userId = userInfo.userId.toString()
     } else {
       this.userId = 111222333
     }

+ 1 - 1
src/components/setting/user-base-setting.vue

@@ -28,7 +28,7 @@
         <v-row justify="center">
           <v-col cols="8">
             <v-textarea
-              v-model="userInfo.introduction"
+              v-model="userInfo.intro"
               label="简介"
               clearable
               placeholder="填写个人简介,让更多人认识你!"

+ 2 - 2
src/components/setting/user-top-image.vue

@@ -13,7 +13,7 @@
         <v-row justify="center">
           <v-col cols="10">
 
-            <v-img :src="userInfo.topImgUrl" :aspect-ratio="5.98" />
+            <v-img :src="userInfo.backgroundUrl" :aspect-ratio="5.98" />
 
           </v-col>
         </v-row>
@@ -108,7 +108,7 @@ export default {
         .then(json => {
           if (json.status === 200) {
             //
-            this.userInfo.topImgUrl = json.data[0].fileUrl
+            this.userInfo.backgroundUrl = json.data[0].fileUrl
             this.message = '上传成功,请点击保存,保存设置!'
             this.showMessage = true
           } else {

+ 2 - 2
src/layout/components/head.vue

@@ -61,8 +61,8 @@ export default {
   methods: {
     headClick(value) {
       if (value === 0) {
-        // this.$router.push('/user/' + this.userInfo.id)
-        // location.replace('/user/' + this.userInfo.id)
+        // this.$router.push('/user/' + this.userInfo.userId)
+        // location.replace('/user/' + this.userInfo.userId)
         if (this.$route.path === '/studio') {
           return
         }

+ 3 - 3
src/layout/index.vue

@@ -135,7 +135,7 @@ export default {
   methods: {
     headClick(value) {
       if (value === 0) {
-        this.$router.push('/user/' + this.userInfo.id)
+        this.$router.push('/user/' + this.userInfo.userId)
       } else if (value === 1) {
         this.$router.push('/studio')
       } else {
@@ -191,10 +191,10 @@ export default {
       this.$router.push('/')
     },
     goToUserHome() {
-      if (this.$route.path === '/user/' + this.$store.state.user.userInfo.id) {
+      if (this.$route.path === '/user/' + this.$store.state.user.userInfo.userId) {
         return
       }
-      this.$router.push('/user/' + this.$store.state.user.userInfo.id)
+      this.$router.push('/user/' + this.$store.state.user.userInfo.userId)
     }
   }
 }

+ 2 - 2
src/layout/studio.vue

@@ -5,7 +5,7 @@
       app
       clipped
     >
-      <router-link :to="`/user/${this.$store.state.user.userInfo.id}`">
+      <router-link :to="`/user/${this.$store.state.user.userInfo.userId}`">
         <v-row justify="center" align="center">
           <v-col cols="12" style="text-align: center">
             <v-avatar size="62">
@@ -166,7 +166,7 @@ export default {
       this.$router.push('/studio/upload')
     },
     goToUserHome() {
-      this.$router.push('/user/' + this.$store.state.user.userInfo.id)
+      this.$router.push('/user/' + this.$store.state.user.userInfo.userId)
     },
     goToHome() {
       if (this.$route.path === '/') {

+ 0 - 1
src/views/login.vue

@@ -95,7 +95,6 @@ export default {
         // 登录成功后返回到首页
         this.$router.push('/')
       }).catch(() => {
-        console.log('用户登录失败')
       })
     },
     userRegister(value) {

+ 8 - 8
src/views/user/index.vue

@@ -3,7 +3,7 @@
     <v-container fill-height fluid style="padding: 0px;">
       <v-row>
         <v-col style="padding: 0px;">
-          <v-img :src="userInfo.topImgUrl" :aspect-ratio="5.98" />
+          <v-img :src="userInfo.backgroundUrl" :aspect-ratio="5.98" />
         </v-col>
       </v-row>
     </v-container>
@@ -24,7 +24,7 @@
           </h2>
         </v-col>
         <!--<v-col
-          v-if="this.$store.state.user.userInfo && this.$store.state.user.userInfo.id === id"
+          v-if="this.$store.state.user.userInfo && this.$store.state.user.userInfo.userId === id"
           cols="6"
           md="4"
           class="hidden-sm-and-down ml-0 pl-4"
@@ -32,11 +32,11 @@
           <v-btn color="primary" @click="goToSetting">自定义频道</v-btn> <v-btn color="primary" @click="goToStudio">创作中心</v-btn>
         </v-col>-->
         <v-col
-          v-if="this.$store.state.user.userInfo == null || this.$store.state.user.userInfo.id != id"
+          v-if="this.$store.state.user.userInfo == null || this.$store.state.user.userInfo.userId != id"
           cols="6"
           md="4"
         >
-          粉丝数:  {{ userInfo.fansCount }} <v-btn color="primary">关注他</v-btn>
+          粉丝数:  {{ userInfo.followerCount }} <v-btn color="primary">关注他</v-btn>
         </v-col>
       </v-row>
 
@@ -58,7 +58,7 @@
         </v-row>
         <v-row>
           <v-col>
-            简介: {{ userInfo.introduction }}
+            简介: {{ userInfo.intro }}
           </v-col>
         </v-row>
         <v-row>
@@ -68,12 +68,12 @@
         </v-row>
         <v-row>
           <v-col>
-            粉丝数: {{ userInfo.fansCount }}
+            粉丝数: {{ userInfo.followerCount }}
           </v-col>
         </v-row>
         <v-row>
           <v-col>
-            关注数: {{ userInfo.followCount }}
+            关注数: {{ userInfo.followingCount }}
           </v-col>
         </v-row>
         <v-row>
@@ -136,7 +136,7 @@ export default {
   methods: {
     getUserInfo() {
       // console.log(this.$store.state.user.userInfo)
-      // if (this.$store.state.user.userInfo !== null && this.$store.state.user.userInfo.id === this.id) {
+      // if (this.$store.state.user.userInfo !== null && this.$store.state.user.userInfo.userId === this.id) {
       //   this.userInfo = this.$store.state.user.userInfo
       //   document.title = this.userInfo.username
       //   return