Skip to content

Commit

Permalink
fix: 修复了chatgpt 因接口变动, token异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangzihan committed Nov 12, 2023
1 parent 50ea2ea commit d02655e
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 90 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"build:serve": "pkg . --compress GZip --out-path=dist/",
"preview": "vite preview",
"eslint": "eslint \"src/**/*.{ts,tsx}\" \"server/**/*.{ts,tsx}\"",
"eslint:fix": "eslint \"src/**/*.{ts,tsx}\" \"server/**/*.{ts,tsx}\" --fix",
"prepare": "husky install"
"eslint:fix": "",
"prepare": ""
},
"bin": "./server/index.js",
"pkg": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoginModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function LoginCard(props: {
<ProFormText
fieldProps={{
size: 'large',
placeholder="请输入邮箱",
placeholder: "请输入邮箱",
prefix: <RobotOutlined />
}}
name="account"
Expand Down
171 changes: 84 additions & 87 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -816,12 +816,7 @@
"resolved" "https://registry.npmmirror.com/@types/mdurl/-/mdurl-1.0.2.tgz"
"version" "1.0.2"

"@types/mime@*":
"integrity" "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA=="
"resolved" "https://registry.npmmirror.com/@types/mime/-/mime-3.0.1.tgz"
"version" "3.0.1"

"@types/mime@^1":
"@types/mime@*", "@types/mime@^1":
"integrity" "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw=="
"resolved" "https://registry.npmmirror.com/@types/mime/-/mime-1.3.2.tgz"
"version" "1.3.2"
Expand Down Expand Up @@ -1078,7 +1073,17 @@
dependencies:
"debug" "4"

"ajv@^6.10.0", "ajv@^6.12.4":
"ajv@^6.10.0":
"integrity" "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="
"resolved" "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz"
"version" "6.12.6"
dependencies:
"fast-deep-equal" "^3.1.1"
"fast-json-stable-stringify" "^2.0.0"
"json-schema-traverse" "^0.4.1"
"uri-js" "^4.2.2"

"ajv@^6.12.4":
"integrity" "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g=="
"resolved" "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz"
"version" "6.12.6"
Expand Down Expand Up @@ -2730,7 +2735,7 @@
"resolved" "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz"
"version" "0.0.0"

"glob-parent@^5.1.2", "glob-parent@~5.1.2":
"glob-parent@^5.1.2":
"integrity" "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="
"resolved" "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz"
"version" "5.1.2"
Expand All @@ -2744,6 +2749,13 @@
dependencies:
"is-glob" "^4.0.3"

"glob-parent@~5.1.2":
"integrity" "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="
"resolved" "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz"
"version" "5.1.2"
dependencies:
"is-glob" "^4.0.1"

"glob@^7.1.3":
"integrity" "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="
"resolved" "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz"
Expand Down Expand Up @@ -3743,20 +3755,20 @@
"resolved" "https://registry.npmmirror.com/moment/-/moment-2.29.4.tgz"
"version" "2.29.4"

"ms@^2.0.0", "ms@^2.1.1", "[email protected].3":
"integrity" "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
"resolved" "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz"
"version" "2.1.3"
"ms@^2.0.0", "ms@^2.1.1", "[email protected].2":
"integrity" "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
"resolved" "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz"
"version" "2.1.2"

"[email protected]":
"integrity" "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
"resolved" "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz"
"version" "2.0.0"

"[email protected].2":
"integrity" "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
"resolved" "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz"
"version" "2.1.2"
"[email protected].3":
"integrity" "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
"resolved" "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz"
"version" "2.1.3"

"msgpackr-extract@^3.0.2":
"integrity" "sha512-SdzXp4kD/Qf8agZ9+iTu6eql0m3kWm1A2y1hkpTeVNENutaB0BwHlSvAIaMxwntmRUAUjon2V4L8Z/njd0Ct8A=="
Expand Down Expand Up @@ -4372,14 +4384,7 @@
"resolved" "https://registry.npmmirror.com/qrcode.react/-/qrcode.react-3.1.0.tgz"
"version" "3.1.0"

"qs@^6.4.0":
"integrity" "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA=="
"resolved" "https://registry.npmmirror.com/qs/-/qs-6.11.2.tgz"
"version" "6.11.2"
dependencies:
"side-channel" "^1.0.4"

"[email protected]":
"qs@^6.4.0", "[email protected]":
"integrity" "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q=="
"resolved" "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz"
"version" "6.11.0"
Expand Down Expand Up @@ -4427,17 +4432,7 @@
"resolved" "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz"
"version" "1.2.1"

"raw-body@^2.2.0":
"integrity" "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA=="
"resolved" "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.2.tgz"
"version" "2.5.2"
dependencies:
"bytes" "3.1.2"
"http-errors" "2.0.0"
"iconv-lite" "0.4.24"
"unpipe" "1.0.0"

"[email protected]":
"raw-body@^2.2.0", "[email protected]":
"integrity" "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig=="
"resolved" "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.1.tgz"
"version" "2.5.1"
Expand Down Expand Up @@ -4930,7 +4925,7 @@
"parse-json" "^5.0.0"
"type-fest" "^0.6.0"

"readable-stream@^2.0.0":
"readable-stream@^2.0.0", "readable-stream@^2.1.4":
"integrity" "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="
"resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz"
"version" "2.3.8"
Expand All @@ -4943,20 +4938,34 @@
"string_decoder" "~1.1.1"
"util-deprecate" "~1.0.1"

"readable-stream@^2.1.4":
"integrity" "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="
"resolved" "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz"
"version" "2.3.8"
"readable-stream@^3.0.0":
"integrity" "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="
"resolved" "https://registry.npmmirror.com/readable-stream/-/readable-stream-3.6.2.tgz"
"version" "3.6.2"
dependencies:
"core-util-is" "~1.0.0"
"inherits" "~2.0.3"
"isarray" "~1.0.0"
"process-nextick-args" "~2.0.0"
"safe-buffer" "~5.1.1"
"string_decoder" "~1.1.1"
"util-deprecate" "~1.0.1"
"inherits" "^2.0.3"
"string_decoder" "^1.1.1"
"util-deprecate" "^1.0.1"

"readable-stream@^3.0.0", "readable-stream@^3.1.1", "readable-stream@^3.4.0", "readable-stream@^3.6.0", "readable-stream@3":
"readable-stream@^3.1.1":
"integrity" "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="
"resolved" "https://registry.npmmirror.com/readable-stream/-/readable-stream-3.6.2.tgz"
"version" "3.6.2"
dependencies:
"inherits" "^2.0.3"
"string_decoder" "^1.1.1"
"util-deprecate" "^1.0.1"

"readable-stream@^3.4.0":
"integrity" "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="
"resolved" "https://registry.npmmirror.com/readable-stream/-/readable-stream-3.6.2.tgz"
"version" "3.6.2"
dependencies:
"inherits" "^2.0.3"
"string_decoder" "^1.1.1"
"util-deprecate" "^1.0.1"

"readable-stream@^3.6.0":
"integrity" "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="
"resolved" "https://registry.npmmirror.com/readable-stream/-/readable-stream-3.6.2.tgz"
"version" "3.6.2"
Expand All @@ -4975,6 +4984,15 @@
"isarray" "0.0.1"
"string_decoder" "~0.10.x"

"readable-stream@3":
"integrity" "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="
"resolved" "https://registry.npmmirror.com/readable-stream/-/readable-stream-3.6.2.tgz"
"version" "3.6.2"
dependencies:
"inherits" "^2.0.3"
"string_decoder" "^1.1.1"
"util-deprecate" "^1.0.1"

"readdirp@~3.6.0":
"integrity" "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA=="
"resolved" "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz"
Expand Down Expand Up @@ -5109,12 +5127,17 @@
dependencies:
"queue-microtask" "^1.2.2"

"safe-buffer@^5.0.1", "safe-buffer@~5.2.0", "safe-buffer@5.2.1":
"safe-buffer@^5.0.1", "[email protected]":
"integrity" "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
"resolved" "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz"
"version" "5.2.1"

"safe-buffer@~5.1.0", "safe-buffer@~5.1.1":
"safe-buffer@~5.1.0":
"integrity" "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
"resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz"
"version" "5.1.2"

"safe-buffer@~5.1.1":
"integrity" "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
"resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz"
"version" "5.1.2"
Expand Down Expand Up @@ -5167,10 +5190,10 @@
"resolved" "https://registry.npmmirror.com/semver/-/semver-6.3.0.tgz"
"version" "6.3.0"

"semver@^7.0.0", "semver@^7.3.2", "semver@^7.3.4", "semver@^7.3.5", "semver@^7.3.7", "semver@^7.3.8":
"integrity" "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw=="
"resolved" "https://registry.npmmirror.com/semver/-/semver-7.5.1.tgz"
"version" "7.5.1"
"semver@^7.0.0", "semver@^7.3.2", "semver@^7.3.4", "semver@^7.3.5", "semver@^7.3.7", "semver@^7.3.8", "[email protected]":
"integrity" "sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA=="
"resolved" "https://registry.npmmirror.com/semver/-/semver-7.5.0.tgz"
"version" "7.5.0"
dependencies:
"lru-cache" "^6.0.0"

Expand All @@ -5179,13 +5202,6 @@
"resolved" "https://registry.npmmirror.com/semver/-/semver-5.7.1.tgz"
"version" "5.7.1"

"[email protected]":
"integrity" "sha512-+XC0AD/R7Q2mPSRuy2Id0+CGTZ98+8f+KvwirxOKIEyid+XSx6HbC63p+O4IndTHuX5Z+JxQ0TghCkO5Cg/2HA=="
"resolved" "https://registry.npmmirror.com/semver/-/semver-7.5.0.tgz"
"version" "7.5.0"
dependencies:
"lru-cache" "^6.0.0"

"[email protected]":
"integrity" "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg=="
"resolved" "https://registry.npmmirror.com/send/-/send-0.18.0.tgz"
Expand Down Expand Up @@ -5415,25 +5431,18 @@
dependencies:
"readable-stream" "^2.1.4"

"string_decoder@^1.1.1":
"integrity" "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="
"resolved" "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.3.0.tgz"
"version" "1.3.0"
"string_decoder@^1.1.1", "string_decoder@~1.1.1":
"integrity" "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="
"resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz"
"version" "1.1.1"
dependencies:
"safe-buffer" "~5.2.0"
"safe-buffer" "~5.1.0"

"string_decoder@~0.10.x":
"integrity" "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ=="
"resolved" "https://registry.npmmirror.com/string_decoder/-/string_decoder-0.10.31.tgz"
"version" "0.10.31"

"string_decoder@~1.1.1":
"integrity" "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="
"resolved" "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz"
"version" "1.1.1"
dependencies:
"safe-buffer" "~5.1.0"

"string-convert@^0.2.0":
"integrity" "sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A=="
"resolved" "https://registry.npmmirror.com/string-convert/-/string-convert-0.2.1.tgz"
Expand Down Expand Up @@ -5778,7 +5787,7 @@
"resolved" "https://registry.npmmirror.com/tweetnacl/-/tweetnacl-1.0.3.tgz"
"version" "1.0.3"

"type-check@^0.4.0":
"type-check@^0.4.0", "type-check@~0.4.0":
"integrity" "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew=="
"resolved" "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz"
"version" "0.4.0"
Expand All @@ -5792,13 +5801,6 @@
dependencies:
"prelude-ls" "~1.1.2"

"type-check@~0.4.0":
"integrity" "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew=="
"resolved" "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz"
"version" "0.4.0"
dependencies:
"prelude-ls" "^1.2.1"

"type-fest@^0.18.0":
"integrity" "sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw=="
"resolved" "https://registry.npmmirror.com/type-fest/-/type-fest-0.18.1.tgz"
Expand Down Expand Up @@ -6109,12 +6111,7 @@
"resolved" "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz"
"version" "4.0.0"

"yargs-parser@^20.2.2":
"integrity" "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w=="
"resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz"
"version" "20.2.9"

"yargs-parser@^20.2.3":
"yargs-parser@^20.2.2", "yargs-parser@^20.2.3":
"integrity" "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w=="
"resolved" "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-20.2.9.tgz"
"version" "20.2.9"
Expand Down

0 comments on commit d02655e

Please sign in to comment.