Parcourir la source

fix: 修改socket地址

余尚辉 il y a 4 mois
Parent
commit
987d86cd91

+ 48 - 0
.VSCodeCounter/2024-11-11_13-08-53/details.md

@@ -0,0 +1,48 @@
+# Details
+
+Date : 2024-11-11 13:08:53
+
+Directory /Users/yushanghui/hongshantianping/git/cti_sdk_web
+
+Total : 33 files,  4079 codes, 1151 comments, 545 blanks, all 5775 lines
+
+[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
+
+## Files
+| filename | language | code | comment | blank | total |
+| :--- | :--- | ---: | ---: | ---: | ---: |
+| [cti_sdk_web/.commitlintrc.json](/cti_sdk_web/.commitlintrc.json) | JSON | 55 | 0 | 1 | 56 |
+| [cti_sdk_web/.eslintrc.json](/cti_sdk_web/.eslintrc.json) | JSON with Comments | 19 | 0 | 1 | 20 |
+| [cti_sdk_web/.prettierrc.json](/cti_sdk_web/.prettierrc.json) | JSON | 11 | 0 | 1 | 12 |
+| [cti_sdk_web/CHANGELOG.md](/cti_sdk_web/CHANGELOG.md) | Markdown | 50 | 0 | 34 | 84 |
+| [cti_sdk_web/README.md](/cti_sdk_web/README.md) | Markdown | 4 | 0 | 5 | 9 |
+| [cti_sdk_web/babel.config.cjs](/cti_sdk_web/babel.config.cjs) | JavaScript | 6 | 0 | 1 | 7 |
+| [cti_sdk_web/package.json](/cti_sdk_web/package.json) | JSON | 136 | 0 | 1 | 137 |
+| [cti_sdk_web/rollup.config.js](/cti_sdk_web/rollup.config.js) | JavaScript | 124 | 25 | 8 | 157 |
+| [cti_sdk_web/scripts/release.js](/cti_sdk_web/scripts/release.js) | JavaScript | 120 | 17 | 17 | 154 |
+| [cti_sdk_web/src/Logger.ts](/cti_sdk_web/src/Logger.ts) | TypeScript | 84 | 3 | 6 | 93 |
+| [cti_sdk_web/src/api/fetchApi.ts](/cti_sdk_web/src/api/fetchApi.ts) | TypeScript | 56 | 1 | 8 | 65 |
+| [cti_sdk_web/src/api/hs-cti/ctiSdk.ts](/cti_sdk_web/src/api/hs-cti/ctiSdk.ts) | TypeScript | 78 | 12 | 14 | 104 |
+| [cti_sdk_web/src/api/hs-cti/ctiSdkModel.ts](/cti_sdk_web/src/api/hs-cti/ctiSdkModel.ts) | TypeScript | 45 | 17 | 8 | 70 |
+| [cti_sdk_web/src/ceshi.html](/cti_sdk_web/src/ceshi.html) | HTML | 21 | 1 | 1 | 23 |
+| [cti_sdk_web/src/cs-cti/index.dts.ts](/cti_sdk_web/src/cs-cti/index.dts.ts) | TypeScript | 1 | 0 | 1 | 2 |
+| [cti_sdk_web/src/cs-cti/index.ts](/cti_sdk_web/src/cs-cti/index.ts) | TypeScript | 1 | 1 | 2 | 4 |
+| [cti_sdk_web/src/eventemitter.d.ts](/cti_sdk_web/src/eventemitter.d.ts) | TypeScript | 80 | 39 | 18 | 137 |
+| [cti_sdk_web/src/eventemitter.js](/cti_sdk_web/src/eventemitter.js) | JavaScript | 183 | 132 | 50 | 365 |
+| [cti_sdk_web/src/hs-cti/HsCTI.ts](/cti_sdk_web/src/hs-cti/HsCTI.ts) | TypeScript | 780 | 104 | 70 | 954 |
+| [cti_sdk_web/src/hs-cti/HsSocket.ts](/cti_sdk_web/src/hs-cti/HsSocket.ts) | TypeScript | 168 | 30 | 22 | 220 |
+| [cti_sdk_web/src/hs-cti/SImpleUserPlus.ts](/cti_sdk_web/src/hs-cti/SImpleUserPlus.ts) | TypeScript | 206 | 146 | 34 | 386 |
+| [cti_sdk_web/src/hs-cti/SessionManager.ts](/cti_sdk_web/src/hs-cti/SessionManager.ts) | TypeScript | 1,174 | 407 | 154 | 1,735 |
+| [cti_sdk_web/src/hs-cti/index.dts.ts](/cti_sdk_web/src/hs-cti/index.dts.ts) | TypeScript | 2 | 0 | 1 | 3 |
+| [cti_sdk_web/src/hs-cti/index.ts](/cti_sdk_web/src/hs-cti/index.ts) | TypeScript | 7 | 4 | 3 | 14 |
+| [cti_sdk_web/src/hs-cti/outputType.ts](/cti_sdk_web/src/hs-cti/outputType.ts) | TypeScript | 120 | 138 | 18 | 276 |
+| [cti_sdk_web/src/hs-cti/storage.ts](/cti_sdk_web/src/hs-cti/storage.ts) | TypeScript | 49 | 0 | 7 | 56 |
+| [cti_sdk_web/src/hs-cti/tools.ts](/cti_sdk_web/src/hs-cti/tools.ts) | TypeScript | 191 | 34 | 20 | 245 |
+| [cti_sdk_web/src/hs-cti/type.ts](/cti_sdk_web/src/hs-cti/type.ts) | TypeScript | 135 | 29 | 20 | 184 |
+| [cti_sdk_web/src/sdk.html](/cti_sdk_web/src/sdk.html) | HTML | 111 | 1 | 14 | 126 |
+| [cti_sdk_web/src/utils.ts](/cti_sdk_web/src/utils.ts) | TypeScript | 21 | 8 | 2 | 31 |
+| [cti_sdk_web/tsconfig.es5.json](/cti_sdk_web/tsconfig.es5.json) | JSON | 6 | 1 | 1 | 8 |
+| [cti_sdk_web/tsconfig.es6.json](/cti_sdk_web/tsconfig.es6.json) | JSON | 6 | 1 | 1 | 8 |
+| [cti_sdk_web/tsconfig.json](/cti_sdk_web/tsconfig.json) | JSON with Comments | 29 | 0 | 1 | 30 |
+
+[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

+ 15 - 0
.VSCodeCounter/2024-11-11_13-08-53/diff-details.md

@@ -0,0 +1,15 @@
+# Diff Details
+
+Date : 2024-11-11 13:08:53
+
+Directory /Users/yushanghui/hongshantianping/git/cti_sdk_web
+
+Total : 0 files,  0 codes, 0 comments, 0 blanks, all 0 lines
+
+[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
+
+## Files
+| filename | language | code | comment | blank | total |
+| :--- | :--- | ---: | ---: | ---: | ---: |
+
+[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details

+ 2 - 0
.VSCodeCounter/2024-11-11_13-08-53/diff.csv

@@ -0,0 +1,2 @@
+"filename", "language", "", "comment", "blank", "total"
+"Total", "-", , 0, 0, 0

+ 19 - 0
.VSCodeCounter/2024-11-11_13-08-53/diff.md

@@ -0,0 +1,19 @@
+# Diff Summary
+
+Date : 2024-11-11 13:08:53
+
+Directory /Users/yushanghui/hongshantianping/git/cti_sdk_web
+
+Total : 0 files,  0 codes, 0 comments, 0 blanks, all 0 lines
+
+[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
+
+## Languages
+| language | files | code | comment | blank | total |
+| :--- | ---: | ---: | ---: | ---: | ---: |
+
+## Directories
+| path | files | code | comment | blank | total |
+| :--- | ---: | ---: | ---: | ---: | ---: |
+
+[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)

+ 22 - 0
.VSCodeCounter/2024-11-11_13-08-53/diff.txt

@@ -0,0 +1,22 @@
+Date : 2024-11-11 13:08:53
+Directory : /Users/yushanghui/hongshantianping/git/cti_sdk_web
+Total : 0 files,  0 codes, 0 comments, 0 blanks, all 0 lines
+
+Languages
++----------+------------+------------+------------+------------+------------+
+| language | files      | code       | comment    | blank      | total      |
++----------+------------+------------+------------+------------+------------+
++----------+------------+------------+------------+------------+------------+
+
+Directories
++------+------------+------------+------------+------------+------------+
+| path | files      | code       | comment    | blank      | total      |
++------+------------+------------+------------+------------+------------+
++------+------------+------------+------------+------------+------------+
+
+Files
++----------+----------+------------+------------+------------+------------+
+| filename | language | code       | comment    | blank      | total      |
++----------+----------+------------+------------+------------+------------+
+| Total    |          |          0 |          0 |          0 |          0 |
++----------+----------+------------+------------+------------+------------+

+ 35 - 0
.VSCodeCounter/2024-11-11_13-08-53/results.csv

@@ -0,0 +1,35 @@
+"filename", "language", "Markdown", "HTML", "TypeScript", "JavaScript", "JSON with Comments", "JSON", "comment", "blank", "total"
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/.commitlintrc.json", "JSON", 0, 0, 0, 0, 0, 55, 0, 1, 56
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/.eslintrc.json", "JSON with Comments", 0, 0, 0, 0, 19, 0, 0, 1, 20
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/.prettierrc.json", "JSON", 0, 0, 0, 0, 0, 11, 0, 1, 12
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/CHANGELOG.md", "Markdown", 50, 0, 0, 0, 0, 0, 0, 34, 84
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/README.md", "Markdown", 4, 0, 0, 0, 0, 0, 0, 5, 9
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/babel.config.cjs", "JavaScript", 0, 0, 0, 6, 0, 0, 0, 1, 7
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/package.json", "JSON", 0, 0, 0, 0, 0, 136, 0, 1, 137
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/rollup.config.js", "JavaScript", 0, 0, 0, 124, 0, 0, 25, 8, 157
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/scripts/release.js", "JavaScript", 0, 0, 0, 120, 0, 0, 17, 17, 154
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/Logger.ts", "TypeScript", 0, 0, 84, 0, 0, 0, 3, 6, 93
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/api/fetchApi.ts", "TypeScript", 0, 0, 56, 0, 0, 0, 1, 8, 65
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/api/hs-cti/ctiSdk.ts", "TypeScript", 0, 0, 78, 0, 0, 0, 12, 14, 104
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/api/hs-cti/ctiSdkModel.ts", "TypeScript", 0, 0, 45, 0, 0, 0, 17, 8, 70
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/ceshi.html", "HTML", 0, 21, 0, 0, 0, 0, 1, 1, 23
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/cs-cti/index.dts.ts", "TypeScript", 0, 0, 1, 0, 0, 0, 0, 1, 2
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/cs-cti/index.ts", "TypeScript", 0, 0, 1, 0, 0, 0, 1, 2, 4
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/eventemitter.d.ts", "TypeScript", 0, 0, 80, 0, 0, 0, 39, 18, 137
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/eventemitter.js", "JavaScript", 0, 0, 0, 183, 0, 0, 132, 50, 365
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/HsCTI.ts", "TypeScript", 0, 0, 780, 0, 0, 0, 104, 70, 954
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/HsSocket.ts", "TypeScript", 0, 0, 168, 0, 0, 0, 30, 22, 220
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/SImpleUserPlus.ts", "TypeScript", 0, 0, 206, 0, 0, 0, 146, 34, 386
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/SessionManager.ts", "TypeScript", 0, 0, 1174, 0, 0, 0, 407, 154, 1735
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/index.dts.ts", "TypeScript", 0, 0, 2, 0, 0, 0, 0, 1, 3
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/index.ts", "TypeScript", 0, 0, 7, 0, 0, 0, 4, 3, 14
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/outputType.ts", "TypeScript", 0, 0, 120, 0, 0, 0, 138, 18, 276
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/storage.ts", "TypeScript", 0, 0, 49, 0, 0, 0, 0, 7, 56
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/tools.ts", "TypeScript", 0, 0, 191, 0, 0, 0, 34, 20, 245
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/type.ts", "TypeScript", 0, 0, 135, 0, 0, 0, 29, 20, 184
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/sdk.html", "HTML", 0, 111, 0, 0, 0, 0, 1, 14, 126
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/src/utils.ts", "TypeScript", 0, 0, 21, 0, 0, 0, 8, 2, 31
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/tsconfig.es5.json", "JSON", 0, 0, 0, 0, 0, 6, 1, 1, 8
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/tsconfig.es6.json", "JSON", 0, 0, 0, 0, 0, 6, 1, 1, 8
+"/Users/yushanghui/hongshantianping/git/cti_sdk_web/tsconfig.json", "JSON with Comments", 0, 0, 0, 0, 29, 0, 0, 1, 30
+"Total", "-", 54, 132, 3198, 433, 48, 214, 1151, 545, 5775

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
.VSCodeCounter/2024-11-11_13-08-53/results.json


+ 35 - 0
.VSCodeCounter/2024-11-11_13-08-53/results.md

@@ -0,0 +1,35 @@
+# Summary
+
+Date : 2024-11-11 13:08:53
+
+Directory /Users/yushanghui/hongshantianping/git/cti_sdk_web
+
+Total : 33 files,  4079 codes, 1151 comments, 545 blanks, all 5775 lines
+
+Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
+
+## Languages
+| language | files | code | comment | blank | total |
+| :--- | ---: | ---: | ---: | ---: | ---: |
+| TypeScript | 18 | 3,198 | 973 | 408 | 4,579 |
+| JavaScript | 4 | 433 | 174 | 76 | 683 |
+| JSON | 5 | 214 | 2 | 5 | 221 |
+| HTML | 2 | 132 | 2 | 15 | 149 |
+| Markdown | 2 | 54 | 0 | 39 | 93 |
+| JSON with Comments | 2 | 48 | 0 | 2 | 50 |
+
+## Directories
+| path | files | code | comment | blank | total |
+| :--- | ---: | ---: | ---: | ---: | ---: |
+| . | 33 | 4,079 | 1,151 | 545 | 5,775 |
+| . (Files) | 11 | 446 | 27 | 55 | 528 |
+| scripts | 1 | 120 | 17 | 17 | 154 |
+| src | 21 | 3,513 | 1,107 | 473 | 5,093 |
+| src (Files) | 6 | 500 | 184 | 91 | 775 |
+| src/api | 3 | 179 | 30 | 30 | 239 |
+| src/api (Files) | 1 | 56 | 1 | 8 | 65 |
+| src/api/hs-cti | 2 | 123 | 29 | 22 | 174 |
+| src/cs-cti | 2 | 2 | 1 | 3 | 6 |
+| src/hs-cti | 10 | 2,832 | 892 | 349 | 4,073 |
+
+Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

+ 71 - 0
.VSCodeCounter/2024-11-11_13-08-53/results.txt

@@ -0,0 +1,71 @@
+Date : 2024-11-11 13:08:53
+Directory : /Users/yushanghui/hongshantianping/git/cti_sdk_web
+Total : 33 files,  4079 codes, 1151 comments, 545 blanks, all 5775 lines
+
+Languages
++--------------------+------------+------------+------------+------------+------------+
+| language           | files      | code       | comment    | blank      | total      |
++--------------------+------------+------------+------------+------------+------------+
+| TypeScript         |         18 |      3,198 |        973 |        408 |      4,579 |
+| JavaScript         |          4 |        433 |        174 |         76 |        683 |
+| JSON               |          5 |        214 |          2 |          5 |        221 |
+| HTML               |          2 |        132 |          2 |         15 |        149 |
+| Markdown           |          2 |         54 |          0 |         39 |         93 |
+| JSON with Comments |          2 |         48 |          0 |          2 |         50 |
++--------------------+------------+------------+------------+------------+------------+
+
+Directories
++----------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
+| path                                                                             | files      | code       | comment    | blank      | total      |
++----------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
+| .                                                                                |         33 |      4,079 |      1,151 |        545 |      5,775 |
+| . (Files)                                                                        |         11 |        446 |         27 |         55 |        528 |
+| scripts                                                                          |          1 |        120 |         17 |         17 |        154 |
+| src                                                                              |         21 |      3,513 |      1,107 |        473 |      5,093 |
+| src (Files)                                                                      |          6 |        500 |        184 |         91 |        775 |
+| src/api                                                                          |          3 |        179 |         30 |         30 |        239 |
+| src/api (Files)                                                                  |          1 |         56 |          1 |          8 |         65 |
+| src/api/hs-cti                                                                   |          2 |        123 |         29 |         22 |        174 |
+| src/cs-cti                                                                       |          2 |          2 |          1 |          3 |          6 |
+| src/hs-cti                                                                       |         10 |      2,832 |        892 |        349 |      4,073 |
++----------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
+
+Files
++----------------------------------------------------------------------------------+--------------------+------------+------------+------------+------------+
+| filename                                                                         | language           | code       | comment    | blank      | total      |
++----------------------------------------------------------------------------------+--------------------+------------+------------+------------+------------+
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/.commitlintrc.json            | JSON               |         55 |          0 |          1 |         56 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/.eslintrc.json                | JSON with Comments |         19 |          0 |          1 |         20 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/.prettierrc.json              | JSON               |         11 |          0 |          1 |         12 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/CHANGELOG.md                  | Markdown           |         50 |          0 |         34 |         84 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/README.md                     | Markdown           |          4 |          0 |          5 |          9 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/babel.config.cjs              | JavaScript         |          6 |          0 |          1 |          7 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/package.json                  | JSON               |        136 |          0 |          1 |        137 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/rollup.config.js              | JavaScript         |        124 |         25 |          8 |        157 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/scripts/release.js            | JavaScript         |        120 |         17 |         17 |        154 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/Logger.ts                 | TypeScript         |         84 |          3 |          6 |         93 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/api/fetchApi.ts           | TypeScript         |         56 |          1 |          8 |         65 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/api/hs-cti/ctiSdk.ts      | TypeScript         |         78 |         12 |         14 |        104 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/api/hs-cti/ctiSdkModel.ts | TypeScript         |         45 |         17 |          8 |         70 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/ceshi.html                | HTML               |         21 |          1 |          1 |         23 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/cs-cti/index.dts.ts       | TypeScript         |          1 |          0 |          1 |          2 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/cs-cti/index.ts           | TypeScript         |          1 |          1 |          2 |          4 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/eventemitter.d.ts         | TypeScript         |         80 |         39 |         18 |        137 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/eventemitter.js           | JavaScript         |        183 |        132 |         50 |        365 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/HsCTI.ts           | TypeScript         |        780 |        104 |         70 |        954 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/HsSocket.ts        | TypeScript         |        168 |         30 |         22 |        220 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/SImpleUserPlus.ts  | TypeScript         |        206 |        146 |         34 |        386 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/SessionManager.ts  | TypeScript         |      1,174 |        407 |        154 |      1,735 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/index.dts.ts       | TypeScript         |          2 |          0 |          1 |          3 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/index.ts           | TypeScript         |          7 |          4 |          3 |         14 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/outputType.ts      | TypeScript         |        120 |        138 |         18 |        276 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/storage.ts         | TypeScript         |         49 |          0 |          7 |         56 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/tools.ts           | TypeScript         |        191 |         34 |         20 |        245 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/hs-cti/type.ts            | TypeScript         |        135 |         29 |         20 |        184 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/sdk.html                  | HTML               |        111 |          1 |         14 |        126 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/src/utils.ts                  | TypeScript         |         21 |          8 |          2 |         31 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/tsconfig.es5.json             | JSON               |          6 |          1 |          1 |          8 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/tsconfig.es6.json             | JSON               |          6 |          1 |          1 |          8 |
+| /Users/yushanghui/hongshantianping/git/cti_sdk_web/tsconfig.json                 | JSON with Comments |         29 |          0 |          1 |         30 |
+| Total                                                                            |                    |      4,079 |      1,151 |        545 |      5,775 |
++----------------------------------------------------------------------------------+--------------------+------------+------------+------------+------------+

+ 2 - 2
dist/hs-cti.d.ts

@@ -4,10 +4,10 @@
 - Version 1.0.9 
 - JS Standard any
 - Author platformfe
-- Built on 2024/11/9 15:05:39
+- Built on 2024/11/16 10:01:11
 - GitHub 
 - Branch main
-- CommitID 968867f227487d12df1b0bf909dbca040463d836
+- CommitID d83889f31bf3f437dd61266d77027454207ee34a
 - CommitMessage feat:init
 */
 /**

+ 9 - 10
dist/hs-cti.es5.esm.js

@@ -4,10 +4,10 @@
 - Version 1.0.9 
 - JS Standard es5
 - Author platformfe
-- Built on 2024/11/9 15:05:39
+- Built on 2024/11/16 10:01:11
 - GitHub 
 - Branch main
-- CommitID 968867f227487d12df1b0bf909dbca040463d836
+- CommitID d83889f31bf3f437dd61266d77027454207ee34a
 - CommitMessage feat:init
 */
 import { Web, RequestPendingError, SessionState, UserAgent, UserAgentState, Registerer, RegistererState, Inviter, Invitation, Session, Messager } from 'sip.js';
@@ -3364,8 +3364,6 @@ var HsSocket = /** @class */function (_super) {
         reconnectionDelay: this.heartBeatDelay,
         reconnectionDelayMax: this.heartBeatDelay + 1000,
         timeout: this.heartBeatDelay,
-        upgrade: true,
-        forceNew: true,
         reconnection: true
       });
       /** https://socket.io/docs/v2/client-api/#event-error */
@@ -3610,7 +3608,7 @@ var hsTrackJPOST = function (_a) {
 };
 
 // 获取初始化配置
-var baseUrl = 'http://localhost:8000';
+var baseUrl = 'http://localhost:8090';
 var getInitConf = function (data) {
   return hsTrackJPOST({
     baseUrl: baseUrl,
@@ -4264,7 +4262,7 @@ var HsCTI = /** @class */function (_super) {
                 // 单次初始化唯一 ID
                 ctiSessionId: '23',
                 // IM websocket url
-                imWsServer: 'http://localhost:8000/ws/cs-im',
+                imWsServer: 'ws://localhost:8091/ws/cs-im',
                 // IM websocket path
                 imWsPath: 'ws/cs-im'
               });
@@ -4492,10 +4490,11 @@ var HsCTI = /** @class */function (_super) {
           }
         },
         onInvite: function (invitation) {
-          var callId = invitation.request.getHeader('P-Wdh-Callid') || '';
-          var ctiFlowId = invitation.request.getHeader('P-WDH-CtiFlowId') || '';
-          if (_this.scene === Scene.Manual && ctiFlowId !== _this._baseParams.ctiFlowId) {
-            _this.logger.error("cti_flow_id \u4E0D\u4E00\u81F4! fe: ".concat(_this._baseParams.ctiFlowId, " | P-WDH-CtiFlowId: ").concat(ctiFlowId));
+          var callId = invitation.request.getHeader('P-LIBRA-Callid') || '';
+          var ctiFlowId = invitation.request.getHeader('P-LIBRA-CtiFlowId') || '';
+          console.log("Request" + ctiFlowId, _this._baseParams.ctiFlowId);
+          if (_this.scene === Scene.Manual && ctiFlowId != _this._baseParams.ctiFlowId) {
+            _this.logger.error("cti_flow_id \u4E0D\u4E00\u81F4! fe: ".concat(_this._baseParams.ctiFlowId, " | P-LIBRA-CtiFlowId: ").concat(ctiFlowId));
             return;
           }
           _this._callId = callId;

Fichier diff supprimé car celui-ci est trop grand
+ 2 - 2
dist/hs-cti.es5.esm.prod.js


+ 9 - 10
dist/hs-cti.es5.umd.js

@@ -4,10 +4,10 @@
 - Version 1.0.9 
 - JS Standard es5
 - Author platformfe
-- Built on 2024/11/9 15:05:39
+- Built on 2024/11/16 10:01:11
 - GitHub 
 - Branch main
-- CommitID 968867f227487d12df1b0bf909dbca040463d836
+- CommitID d83889f31bf3f437dd61266d77027454207ee34a
 - CommitMessage feat:init
 */
 (function (global, factory) {
@@ -3367,8 +3367,6 @@
             reconnectionDelay: this.heartBeatDelay,
             reconnectionDelayMax: this.heartBeatDelay + 1000,
             timeout: this.heartBeatDelay,
-            upgrade: true,
-            forceNew: true,
             reconnection: true
           });
           /** https://socket.io/docs/v2/client-api/#event-error */
@@ -3613,7 +3611,7 @@
     };
 
     // 获取初始化配置
-    var baseUrl = 'http://localhost:8000';
+    var baseUrl = 'http://localhost:8090';
     var getInitConf = function (data) {
       return hsTrackJPOST({
         baseUrl: baseUrl,
@@ -4267,7 +4265,7 @@
                     // 单次初始化唯一 ID
                     ctiSessionId: '23',
                     // IM websocket url
-                    imWsServer: 'http://localhost:8000/ws/cs-im',
+                    imWsServer: 'ws://localhost:8091/ws/cs-im',
                     // IM websocket path
                     imWsPath: 'ws/cs-im'
                   });
@@ -4495,10 +4493,11 @@
               }
             },
             onInvite: function (invitation) {
-              var callId = invitation.request.getHeader('P-Wdh-Callid') || '';
-              var ctiFlowId = invitation.request.getHeader('P-WDH-CtiFlowId') || '';
-              if (_this.scene === exports.Scene.Manual && ctiFlowId !== _this._baseParams.ctiFlowId) {
-                _this.logger.error("cti_flow_id \u4E0D\u4E00\u81F4! fe: ".concat(_this._baseParams.ctiFlowId, " | P-WDH-CtiFlowId: ").concat(ctiFlowId));
+              var callId = invitation.request.getHeader('P-LIBRA-Callid') || '';
+              var ctiFlowId = invitation.request.getHeader('P-LIBRA-CtiFlowId') || '';
+              console.log("Request" + ctiFlowId, _this._baseParams.ctiFlowId);
+              if (_this.scene === exports.Scene.Manual && ctiFlowId != _this._baseParams.ctiFlowId) {
+                _this.logger.error("cti_flow_id \u4E0D\u4E00\u81F4! fe: ".concat(_this._baseParams.ctiFlowId, " | P-LIBRA-CtiFlowId: ").concat(ctiFlowId));
                 return;
               }
               _this._callId = callId;

Fichier diff supprimé car celui-ci est trop grand
+ 2 - 2
dist/hs-cti.es5.umd.prod.js


+ 9 - 10
dist/hs-cti.es6.esm.js

@@ -4,10 +4,10 @@
 - Version 1.0.9 
 - JS Standard es6
 - Author platformfe
-- Built on 2024/11/9 15:05:39
+- Built on 2024/11/16 10:01:11
 - GitHub 
 - Branch main
-- CommitID 968867f227487d12df1b0bf909dbca040463d836
+- CommitID d83889f31bf3f437dd61266d77027454207ee34a
 - CommitMessage feat:init
 */
 import { Web, UserAgent, UserAgentState, Registerer, RegistererState, Inviter, Invitation, Session, Messager, RequestPendingError, SessionState } from 'sip.js';
@@ -2784,8 +2784,6 @@ class HsSocket extends EventEmitter {
       reconnectionDelay: this.heartBeatDelay,
       reconnectionDelayMax: this.heartBeatDelay + 1000,
       timeout: this.heartBeatDelay,
-      upgrade: true,
-      forceNew: true,
       reconnection: true
     });
     /** https://socket.io/docs/v2/client-api/#event-error */
@@ -2980,7 +2978,7 @@ const hsTrackJPOST = ({
 };
 
 // 获取初始化配置
-const baseUrl = 'http://localhost:8000';
+const baseUrl = 'http://localhost:8090';
 const getInitConf = data => {
   return hsTrackJPOST({
     baseUrl,
@@ -3552,7 +3550,7 @@ class HsCTI extends EventEmitter {
         // 单次初始化唯一 ID
         ctiSessionId: '23',
         // IM websocket url
-        imWsServer: 'http://localhost:8000/ws/cs-im',
+        imWsServer: 'ws://localhost:8091/ws/cs-im',
         // IM websocket path
         imWsPath: 'ws/cs-im'
       });
@@ -3754,10 +3752,11 @@ class HsCTI extends EventEmitter {
         }
       },
       onInvite: invitation => {
-        const callId = invitation.request.getHeader('P-Wdh-Callid') || '';
-        const ctiFlowId = invitation.request.getHeader('P-WDH-CtiFlowId') || '';
-        if (this.scene === Scene.Manual && ctiFlowId !== this._baseParams.ctiFlowId) {
-          this.logger.error(`cti_flow_id 不一致! fe: ${this._baseParams.ctiFlowId} | P-WDH-CtiFlowId: ${ctiFlowId}`);
+        const callId = invitation.request.getHeader('P-LIBRA-Callid') || '';
+        const ctiFlowId = invitation.request.getHeader('P-LIBRA-CtiFlowId') || '';
+        console.log(`Request` + ctiFlowId, this._baseParams.ctiFlowId);
+        if (this.scene === Scene.Manual && ctiFlowId != this._baseParams.ctiFlowId) {
+          this.logger.error(`cti_flow_id 不一致! fe: ${this._baseParams.ctiFlowId} | P-LIBRA-CtiFlowId: ${ctiFlowId}`);
           return;
         }
         this._callId = callId;

Fichier diff supprimé car celui-ci est trop grand
+ 2 - 2
dist/hs-cti.es6.esm.prod.js


+ 9 - 10
dist/hs-cti.es6.umd.js

@@ -4,10 +4,10 @@
 - Version 1.0.9 
 - JS Standard es6
 - Author platformfe
-- Built on 2024/11/9 15:05:39
+- Built on 2024/11/16 10:01:11
 - GitHub 
 - Branch main
-- CommitID 968867f227487d12df1b0bf909dbca040463d836
+- CommitID d83889f31bf3f437dd61266d77027454207ee34a
 - CommitMessage feat:init
 */
 (function (global, factory) {
@@ -2787,8 +2787,6 @@
           reconnectionDelay: this.heartBeatDelay,
           reconnectionDelayMax: this.heartBeatDelay + 1000,
           timeout: this.heartBeatDelay,
-          upgrade: true,
-          forceNew: true,
           reconnection: true
         });
         /** https://socket.io/docs/v2/client-api/#event-error */
@@ -2983,7 +2981,7 @@
     };
 
     // 获取初始化配置
-    const baseUrl = 'http://localhost:8000';
+    const baseUrl = 'http://localhost:8090';
     const getInitConf = data => {
       return hsTrackJPOST({
         baseUrl,
@@ -3555,7 +3553,7 @@
             // 单次初始化唯一 ID
             ctiSessionId: '23',
             // IM websocket url
-            imWsServer: 'http://localhost:8000/ws/cs-im',
+            imWsServer: 'ws://localhost:8091/ws/cs-im',
             // IM websocket path
             imWsPath: 'ws/cs-im'
           });
@@ -3757,10 +3755,11 @@
             }
           },
           onInvite: invitation => {
-            const callId = invitation.request.getHeader('P-Wdh-Callid') || '';
-            const ctiFlowId = invitation.request.getHeader('P-WDH-CtiFlowId') || '';
-            if (this.scene === exports.Scene.Manual && ctiFlowId !== this._baseParams.ctiFlowId) {
-              this.logger.error(`cti_flow_id 不一致! fe: ${this._baseParams.ctiFlowId} | P-WDH-CtiFlowId: ${ctiFlowId}`);
+            const callId = invitation.request.getHeader('P-LIBRA-Callid') || '';
+            const ctiFlowId = invitation.request.getHeader('P-LIBRA-CtiFlowId') || '';
+            console.log(`Request` + ctiFlowId, this._baseParams.ctiFlowId);
+            if (this.scene === exports.Scene.Manual && ctiFlowId != this._baseParams.ctiFlowId) {
+              this.logger.error(`cti_flow_id 不一致! fe: ${this._baseParams.ctiFlowId} | P-LIBRA-CtiFlowId: ${ctiFlowId}`);
               return;
             }
             this._callId = callId;

Fichier diff supprimé car celui-ci est trop grand
+ 2 - 2
dist/hs-cti.es6.umd.prod.js


+ 1 - 1
src/api/hs-cti/ctiSdk.ts

@@ -9,7 +9,7 @@ import type {
   ctiSetActiveServiceParams
 } from './ctiSdkModel'
 // 获取初始化配置
-const baseUrl = 'http://localhost:8000'
+const baseUrl = 'http://192.168.100.159:8090'
 
 export const getInitConf = (data: CTIBaseOptions) => {
   return hsTrackJPOST({

+ 7 - 5
src/hs-cti/HsCTI.ts

@@ -282,7 +282,7 @@ export class HsCTI extends EventEmitter {
       // 单次初始化唯一 ID
       ctiSessionId: '23',
       // IM websocket url
-      imWsServer: 'http://localhost:8000/ws/cs-im',
+      imWsServer: 'ws://192.168.100.159:8091/ws/cs-im',
       // IM websocket path
       imWsPath: 'ws/cs-im'
     }
@@ -481,14 +481,16 @@ export class HsCTI extends EventEmitter {
         }
       },
       onInvite: (invitation: Invitation) => {
-        const callId = invitation.request.getHeader('P-Wdh-Callid') || ''
-        const ctiFlowId = invitation.request.getHeader('P-WDH-CtiFlowId') || ''
+        const callId = invitation.request.getHeader('P-LIBRA-Callid') || ''
+        const ctiFlowId =
+          invitation.request.getHeader('P-LIBRA-CtiFlowId') || ''
+        console.log(`Request` + ctiFlowId, this._baseParams.ctiFlowId)
         if (
           this.scene === Scene.Manual &&
-          ctiFlowId !== this._baseParams.ctiFlowId
+          ctiFlowId != this._baseParams.ctiFlowId
         ) {
           this.logger.error(
-            `cti_flow_id 不一致! fe: ${this._baseParams.ctiFlowId} | P-WDH-CtiFlowId: ${ctiFlowId}`
+            `cti_flow_id 不一致! fe: ${this._baseParams.ctiFlowId} | P-LIBRA-CtiFlowId: ${ctiFlowId}`
           )
           return
         }

+ 3 - 3
src/sdk.html

@@ -80,9 +80,9 @@ window.addEventListener('load', ()=>{
   buy_btn.addEventListener('click', () => {
     HS_CTI.bye()
   })
-  HS_CTI.getAgentStatus().then((res) => {
-      console.log(res)
-    })
+  // HS_CTI.getAgentStatus().then((res) => {
+  //     console.log(res)
+  //   })
   getAgentStatus_btn.addEventListener('click', () => {
     HS_CTI.getAgentStatus().then((res) => {
       console.log(res)

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff