address-client 3.2.108 → 3.2.109

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 (158) hide show
  1. package/.gradle/8.5/checksums/checksums.lock +0 -0
  2. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  3. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  4. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  5. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  7. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  8. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  9. package/.gradle/8.5/gc.properties +0 -0
  10. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/.gradle/buildOutputCleanup/cache.properties +2 -2
  12. package/.gradle/file-system.probe +0 -0
  13. package/.gradle/vcs-1/gc.properties +0 -0
  14. package/CHANGELOG.md +15 -15
  15. package/build/dev-server.js +185 -185
  16. package/build/libs/AddressClient-V3-3.0.11.jar +0 -0
  17. package/build/tmp/jar/MANIFEST.MF +2 -0
  18. package/build/versionCheck.js +31 -31
  19. package/build/webpack.base.conf.js +82 -82
  20. package/examples/showAdd/App.vue +40 -40
  21. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  22. package/gradle/wrapper/gradle-wrapper.properties +7 -0
  23. package/gradlew +249 -0
  24. package/gradlew.bat +92 -0
  25. package/index.html +44 -44
  26. package/package.json +101 -101
  27. package/src/address.js +74 -74
  28. package/src/components/AddAreaMsg.vue +757 -757
  29. package/src/components/AddCommunityManageMsg.vue +220 -220
  30. package/src/components/AddStreetManageMsg.vue +204 -204
  31. package/src/components/AddStreetOrPcd.vue +316 -316
  32. package/src/components/AddressAddAddress.vue +479 -479
  33. package/src/components/AddressFiles.vue +156 -156
  34. package/src/components/AddressList.vue +632 -630
  35. package/src/components/AddressListLiuLi.vue +17 -17
  36. package/src/components/AddressManage.vue +117 -117
  37. package/src/components/AddressTree.vue +501 -501
  38. package/src/components/AreaFiles.vue +73 -73
  39. package/src/components/AreaList.vue +410 -410
  40. package/src/components/AreaManage.vue +104 -104
  41. package/src/components/AreaTree.vue +508 -508
  42. package/src/components/Basch.vue +72 -72
  43. package/src/components/BatchOrders.vue +328 -328
  44. package/src/components/BuildingList.vue +129 -129
  45. package/src/components/CityList.vue +134 -134
  46. package/src/components/CityManage.vue +76 -76
  47. package/src/components/CommunityAreaList.vue +87 -87
  48. package/src/components/CommunityManage.vue +78 -78
  49. package/src/components/CommunityManageList.vue +244 -244
  50. package/src/components/NewAddressInfo.vue +432 -432
  51. package/src/components/StreetList.vue +241 -241
  52. package/src/components/StreetManage.vue +68 -68
  53. package/src/components/StreetManageList.vue +225 -225
  54. package/src/components/UserAddress.vue +908 -908
  55. package/src/components/UserAddressChange.vue +58 -58
  56. package/src/components/selectAddress/BatchList.vue +326 -326
  57. package/src/filiale/WEINAN/AddAreaMsg.vue +745 -745
  58. package/src/filiale/WEINAN/AddressList.vue +588 -588
  59. package/src/filiale/WEINAN/AddressManage.vue +122 -122
  60. package/src/filiale/WEINAN/AreaList.vue +435 -435
  61. package/src/filiale/WEINAN/AreaManage.vue +109 -109
  62. package/src/filiale/WEINAN/AreaUserList.vue +226 -226
  63. package/src/filiale/WEINAN/UserAddress.vue +783 -783
  64. package/src/filiale/WEINAN/sale.js +18 -18
  65. package/src/filiale/chengtou/UserAddress.vue +894 -894
  66. package/src/filiale/chengtou/sale.js +7 -7
  67. package/src/filiale/dongguan/AddStreetOrPcd.vue +422 -422
  68. package/src/filiale/dongguan/sale.js +7 -7
  69. package/src/filiale/gaomi/AddressList.vue +430 -430
  70. package/src/filiale/gaomi/UserAddress.vue +832 -832
  71. package/src/filiale/gaomi/sale.js +14 -14
  72. package/src/filiale/gongyi/AddAreaMsg.vue +651 -651
  73. package/src/filiale/gongyi/AreaManage.vue +100 -100
  74. package/src/filiale/gongyi/UserAddress.vue +751 -751
  75. package/src/filiale/gongyi/sale.js +14 -14
  76. package/src/filiale/haile/AddressList.vue +615 -615
  77. package/src/filiale/haile/sale.js +8 -8
  78. package/src/filiale/jingwei/UserAddress.vue +764 -764
  79. package/src/filiale/jingwei/sale.js +12 -12
  80. package/src/filiale/lixianV3/AreaList.vue +416 -416
  81. package/src/filiale/lixianV3/sale.js +12 -12
  82. package/src/filiale/macheng/AddAreaMsg.vue +635 -635
  83. package/src/filiale/macheng/AddStreetOrPcd.vue +231 -231
  84. package/src/filiale/macheng/AddressList.vue +613 -613
  85. package/src/filiale/macheng/AreaList.vue +318 -318
  86. package/src/filiale/macheng/CityManage.vue +76 -76
  87. package/src/filiale/macheng/StreetList.vue +186 -186
  88. package/src/filiale/macheng/UserAddress.vue +743 -743
  89. package/src/filiale/macheng/sale.js +17 -17
  90. package/src/filiale/meihekou/UserAddress.vue +898 -898
  91. package/src/filiale/meihekou/sale.js +8 -8
  92. package/src/filiale/qianneng/AddAreaMsg.vue +755 -755
  93. package/src/filiale/qianneng/AddStreetOrPcd.vue +328 -328
  94. package/src/filiale/qianneng/AddressList.vue +638 -638
  95. package/src/filiale/qianneng/AreaList.vue +431 -431
  96. package/src/filiale/qianneng/CityManage.vue +81 -81
  97. package/src/filiale/qianneng/UserAddress.vue +1125 -1125
  98. package/src/filiale/qianneng/sale.js +20 -20
  99. package/src/filiale/qinhua/AddAreaMsg.vue +743 -743
  100. package/src/filiale/qinhua/AddressList.vue +627 -627
  101. package/src/filiale/qinhua/AddressManage.vue +117 -117
  102. package/src/filiale/qinhua/AreaList.vue +425 -425
  103. package/src/filiale/qinhua/AreaManage.vue +100 -100
  104. package/src/filiale/qinhua/CityManage.vue +76 -76
  105. package/src/filiale/qinhua/StreetList.vue +241 -241
  106. package/src/filiale/qinhua/UserAddress.vue +894 -894
  107. package/src/filiale/qinhua/sale.js +20 -20
  108. package/src/filiale/rizhao/UserAddress.vue +897 -897
  109. package/src/filiale/rizhao/sale.js +8 -8
  110. package/src/filiale/rongcheng/AddressList.vue +363 -363
  111. package/src/filiale/rongcheng/UserAddress.vue +799 -799
  112. package/src/filiale/rongcheng/sale.js +11 -11
  113. package/src/filiale/shanggao/AddAreaMsg.vue +752 -752
  114. package/src/filiale/shanggao/AddStreetOrPcd.vue +312 -312
  115. package/src/filiale/shanggao/AddressList.vue +613 -613
  116. package/src/filiale/shanggao/AreaList.vue +436 -436
  117. package/src/filiale/shanggao/BuildingList.vue +129 -129
  118. package/src/filiale/shanggao/StreetList.vue +240 -240
  119. package/src/filiale/shanggao/UserAddress.vue +953 -953
  120. package/src/filiale/shanggao/sale.js +16 -16
  121. package/src/filiale/shanxian/AddAreaMsg.vue +766 -766
  122. package/src/filiale/shanxian/AddressList.vue +658 -658
  123. package/src/filiale/shanxian/AreaList.vue +458 -458
  124. package/src/filiale/shanxian/AreaManage.vue +107 -107
  125. package/src/filiale/shanxian/UserAddress.vue +900 -900
  126. package/src/filiale/shanxian/sale.js +15 -15
  127. package/src/filiale/shaoguan/AddAreaMsg.vue +629 -629
  128. package/src/filiale/shaoguan/UserAddress.vue +762 -762
  129. package/src/filiale/shaoguan/sale.js +11 -11
  130. package/src/filiale/tongchuan/AddAreaMsg.vue +635 -635
  131. package/src/filiale/tongchuan/AddStreetOrPcd.vue +351 -351
  132. package/src/filiale/tongchuan/AddressList.vue +379 -379
  133. package/src/filiale/tongchuan/AreaList.vue +315 -315
  134. package/src/filiale/tongchuan/AreaManage.vue +100 -100
  135. package/src/filiale/tongchuan/CityList.vue +133 -133
  136. package/src/filiale/tongchuan/StreetList.vue +215 -215
  137. package/src/filiale/tongchuan/UserAddress.vue +822 -822
  138. package/src/filiale/tongchuan/sale.js +19 -19
  139. package/src/filiale/wuhai/UserAddress.vue +795 -795
  140. package/src/filiale/wuhai/sale.js +12 -12
  141. package/src/filiale/xinkang/AddAreaMsg.vue +780 -780
  142. package/src/filiale/xinkang/AreaList.vue +413 -413
  143. package/src/filiale/xinkang/sale.js +9 -9
  144. package/src/filiale/yangchun/AddAreaMsg.vue +764 -764
  145. package/src/filiale/yangchun/sale.js +7 -7
  146. package/src/filiale/zhongsheng/AddressList.vue +671 -671
  147. package/src/filiale/zhongsheng/AreaList.vue +500 -500
  148. package/src/filiale/zhongsheng/sale.js +12 -12
  149. package/src/filiale/zhongyi/AddAreaMsg.vue +757 -757
  150. package/src/filiale/zhongyi/sale.js +12 -12
  151. package/src/filiale/zhoukou/AddAreaMsg.vue +673 -673
  152. package/src/filiale/zhoukou/AddressList.vue +391 -391
  153. package/src/filiale/zhoukou/AddressManage.vue +115 -115
  154. package/src/filiale/zhoukou/AreaList.vue +319 -319
  155. package/src/filiale/zhoukou/AreaManage.vue +100 -100
  156. package/src/filiale/zhoukou/UserAddress.vue +925 -925
  157. package/src/filiale/zhoukou/sale.js +23 -23
  158. package/src/main.js +23 -23
File without changes
@@ -1,2 +1,2 @@
1
- #Mon Dec 07 15:35:10 CST 2020
2
- gradle.version=5.2.1
1
+ #Mon Dec 07 15:35:10 CST 2020
2
+ gradle.version=5.2.1
Binary file
File without changes
package/CHANGELOG.md CHANGED
@@ -1,15 +1,15 @@
1
- # Change Log
2
- 所有关于本产品的变化都在该文档里。
3
-
4
- ## 3.0.24-2020-10-15 @张科科
5
- --地址管理 特殊建档 增加小区选择
6
-
7
- ## 1.3.2-2018-11-12 @刘江涛
8
- - 地址查询修改
9
-
10
- ## 1.3.1-2018-11-11 @何宁社
11
- - 地址管理完成
12
- - 地址查询完成
13
-
14
- ## 1.2.0-2018-11-11 @何宁社
15
- - 删除样式
1
+ # Change Log
2
+ 所有关于本产品的变化都在该文档里。
3
+
4
+ ## 3.0.24-2020-10-15 @张科科
5
+ --地址管理 特殊建档 增加小区选择
6
+
7
+ ## 1.3.2-2018-11-12 @刘江涛
8
+ - 地址查询修改
9
+
10
+ ## 1.3.1-2018-11-11 @何宁社
11
+ - 地址管理完成
12
+ - 地址查询完成
13
+
14
+ ## 1.2.0-2018-11-11 @何宁社
15
+ - 删除样式
@@ -1,185 +1,185 @@
1
- var express = require('express')
2
- var webpack = require('webpack')
3
- var config = require('./webpack.dev.conf')
4
- var proxyMiddleware = require('http-proxy-middleware')
5
- var httpProxy = require('http-proxy')
6
- var checkVersion = require('./versionCheck.js')
7
- checkVersion()
8
- var app = express()
9
- var compiler = webpack(config)
10
- var proxy = httpProxy.createProxyServer()
11
-
12
- // Define HTTP proxies to your custom API backend
13
- // https://github.com/chimurai/http-proxy-middleware
14
- var str = 'http://192.168.50.4:8400', str2= 'http://192.168.50.4:8400'
15
- var str3= 'http://192.168.50.4:8400'
16
- var proxyTable = {
17
- '/api/af-auth': {
18
- target: str
19
- },
20
- '/api/af-system': {
21
- target: str
22
- },
23
- '/api/af-revenue': {
24
- pathRewrite: {'/api/af-revenue': '/'},
25
- target: 'http://127.0.0.1:9026'
26
- },
27
- '/rs/entity': {
28
- target: str
29
- // secure:true,
30
- // changeOrigin:true
31
- // target: 'http://127.0.0.1:8080'
32
- },
33
- '/webapps':{
34
- target: str3,
35
- secure:true,
36
- changeOrigin:true
37
- // target: 'http://127.0.0.1:8080'
38
- },
39
- '/rs/logic/getLogin': {
40
- target: str3,
41
- secure:true,
42
- changeOrigin:true
43
- },
44
- '/rs/logic/getInitData': {
45
- target: str3,
46
- secure:true,
47
- changeOrigin:true,
48
- },
49
- '/rs/logic/getSaleInitData': {
50
- target: str3,
51
- secure:true,
52
- changeOrigin:true
53
- },
54
- // '/rs/logic':{
55
- // target: str3,
56
- // secure:true,
57
- // changeOrigin:true
58
- // // target: 'http://127.0.0.1:8080'
59
- // },
60
- '/rs/vue': {
61
- target: str3,
62
- secure:true,
63
- changeOrigin:true
64
- },
65
- '/rs/user': {
66
- target: str3,
67
- secure:true,
68
- changeOrigin:true
69
- },
70
- '/rs/db': {
71
- target: str3,
72
- secure:true,
73
- changeOrigin:true
74
- },
75
- '/rs/search': {
76
- target: str3,
77
- secure:true,
78
- changeOrigin:true
79
- // target: 'http://127.0.0.1:8080'
80
- },
81
- '/rs/data': {
82
- target: str3,
83
- secure:true,
84
- changeOrigin:true
85
- },
86
- '/rs/sql': {
87
- target: str
88
- // secure: true,
89
- // changeOrigin:true
90
- // target: 'http://127.0.0.1:8080'
91
- },
92
- '/rs/logic': {
93
- target: str
94
- // secure: true,
95
- // changeOrigin:true
96
- // target: 'http://127.0.0.1:8080'
97
- },
98
- '/rs': {
99
- // target: 'http://192.168.50.199:8300'
100
- target: str3,
101
- secure:true,
102
- changeOrigin:true
103
- }
104
- }
105
-
106
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
107
- publicPath: config.output.publicPath,
108
- stats: {
109
- colors: true,
110
- chunks: false
111
- }
112
- })
113
-
114
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
115
- // force page reload when html-webpack-plugin template changes
116
- compiler.plugin('compilation', function (compilation) {
117
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
118
- hotMiddleware.publish({ action: 'reload' })
119
- cb()
120
- })
121
- })
122
-
123
- // proxy api requests
124
- Object.keys(proxyTable).forEach(function (context) {
125
- var options = proxyTable[context]
126
- if (typeof options === 'string') {
127
- options = { target: options }
128
- }
129
- app.use(proxyMiddleware(context, options))
130
- })
131
-
132
- // handle fallback for HTML5 history API
133
- app.use(require('connect-history-api-fallback')())
134
-
135
- // serve webpack bundle output
136
- app.use(devMiddleware)
137
-
138
- // enable hot-reload and state-preserving
139
- // compilation error display
140
- app.use(hotMiddleware)
141
-
142
- // serve pure static assets
143
- app.use('/static', express.static('./static'))
144
-
145
- // app.all('/rs/*', function (req, res) {
146
- // proxy.web(req, res, {
147
- // target: 'http://127.0.0.1:8081/reports'
148
- // })
149
- // })
150
-
151
- // app.all('/rs/*', function (req, res) {
152
- // proxy.web(req, res, {
153
- // target: 'http://127.0.0.1:8081/ldap'
154
- // })
155
- // })
156
- // app.all('/excel/*', function (req, res) {
157
- // proxy.web(req, res, {
158
- // target: 'http://127.0.0.1:8081/charge'
159
- // })
160
- // })
161
-
162
- // app.all('/rs/*', function (req, res) {
163
- // proxy.web(req, res, {
164
- // target: 'http://127.0.0.1:82/charge'
165
- // })
166
- // })
167
-
168
- // app.all('/*', function (req, res) {
169
- // proxy.web(req, res, {
170
- // target: 'http://127.0.0.1:82'
171
- // })
172
- // })
173
- // app.all('/rs/user', function (req, res) {
174
- // proxy.web(req, res, {
175
- // target: 'http://127.0.0.1:82'
176
- // })
177
- // })
178
-
179
- module.exports = app.listen(8085, function (err) {
180
- if (err) {
181
- console.log(err)
182
- return
183
- }
184
- console.log('Listening at http://localhost:8085')
185
- })
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ var httpProxy = require('http-proxy')
6
+ var checkVersion = require('./versionCheck.js')
7
+ checkVersion()
8
+ var app = express()
9
+ var compiler = webpack(config)
10
+ var proxy = httpProxy.createProxyServer()
11
+
12
+ // Define HTTP proxies to your custom API backend
13
+ // https://github.com/chimurai/http-proxy-middleware
14
+ var str = 'http://192.168.50.4:8400', str2= 'http://192.168.50.4:8400'
15
+ var str3= 'http://192.168.50.4:8400'
16
+ var proxyTable = {
17
+ '/api/af-auth': {
18
+ target: str
19
+ },
20
+ '/api/af-system': {
21
+ target: str
22
+ },
23
+ '/api/af-revenue': {
24
+ pathRewrite: {'/api/af-revenue': '/'},
25
+ target: 'http://127.0.0.1:9026'
26
+ },
27
+ '/rs/entity': {
28
+ target: str
29
+ // secure:true,
30
+ // changeOrigin:true
31
+ // target: 'http://127.0.0.1:8080'
32
+ },
33
+ '/webapps':{
34
+ target: str3,
35
+ secure:true,
36
+ changeOrigin:true
37
+ // target: 'http://127.0.0.1:8080'
38
+ },
39
+ '/rs/logic/getLogin': {
40
+ target: str3,
41
+ secure:true,
42
+ changeOrigin:true
43
+ },
44
+ '/rs/logic/getInitData': {
45
+ target: str3,
46
+ secure:true,
47
+ changeOrigin:true,
48
+ },
49
+ '/rs/logic/getSaleInitData': {
50
+ target: str3,
51
+ secure:true,
52
+ changeOrigin:true
53
+ },
54
+ // '/rs/logic':{
55
+ // target: str3,
56
+ // secure:true,
57
+ // changeOrigin:true
58
+ // // target: 'http://127.0.0.1:8080'
59
+ // },
60
+ '/rs/vue': {
61
+ target: str3,
62
+ secure:true,
63
+ changeOrigin:true
64
+ },
65
+ '/rs/user': {
66
+ target: str3,
67
+ secure:true,
68
+ changeOrigin:true
69
+ },
70
+ '/rs/db': {
71
+ target: str3,
72
+ secure:true,
73
+ changeOrigin:true
74
+ },
75
+ '/rs/search': {
76
+ target: str3,
77
+ secure:true,
78
+ changeOrigin:true
79
+ // target: 'http://127.0.0.1:8080'
80
+ },
81
+ '/rs/data': {
82
+ target: str3,
83
+ secure:true,
84
+ changeOrigin:true
85
+ },
86
+ '/rs/sql': {
87
+ target: str
88
+ // secure: true,
89
+ // changeOrigin:true
90
+ // target: 'http://127.0.0.1:8080'
91
+ },
92
+ '/rs/logic': {
93
+ target: str
94
+ // secure: true,
95
+ // changeOrigin:true
96
+ // target: 'http://127.0.0.1:8080'
97
+ },
98
+ '/rs': {
99
+ // target: 'http://192.168.50.199:8300'
100
+ target: str3,
101
+ secure:true,
102
+ changeOrigin:true
103
+ }
104
+ }
105
+
106
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
107
+ publicPath: config.output.publicPath,
108
+ stats: {
109
+ colors: true,
110
+ chunks: false
111
+ }
112
+ })
113
+
114
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
115
+ // force page reload when html-webpack-plugin template changes
116
+ compiler.plugin('compilation', function (compilation) {
117
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
118
+ hotMiddleware.publish({ action: 'reload' })
119
+ cb()
120
+ })
121
+ })
122
+
123
+ // proxy api requests
124
+ Object.keys(proxyTable).forEach(function (context) {
125
+ var options = proxyTable[context]
126
+ if (typeof options === 'string') {
127
+ options = { target: options }
128
+ }
129
+ app.use(proxyMiddleware(context, options))
130
+ })
131
+
132
+ // handle fallback for HTML5 history API
133
+ app.use(require('connect-history-api-fallback')())
134
+
135
+ // serve webpack bundle output
136
+ app.use(devMiddleware)
137
+
138
+ // enable hot-reload and state-preserving
139
+ // compilation error display
140
+ app.use(hotMiddleware)
141
+
142
+ // serve pure static assets
143
+ app.use('/static', express.static('./static'))
144
+
145
+ // app.all('/rs/*', function (req, res) {
146
+ // proxy.web(req, res, {
147
+ // target: 'http://127.0.0.1:8081/reports'
148
+ // })
149
+ // })
150
+
151
+ // app.all('/rs/*', function (req, res) {
152
+ // proxy.web(req, res, {
153
+ // target: 'http://127.0.0.1:8081/ldap'
154
+ // })
155
+ // })
156
+ // app.all('/excel/*', function (req, res) {
157
+ // proxy.web(req, res, {
158
+ // target: 'http://127.0.0.1:8081/charge'
159
+ // })
160
+ // })
161
+
162
+ // app.all('/rs/*', function (req, res) {
163
+ // proxy.web(req, res, {
164
+ // target: 'http://127.0.0.1:82/charge'
165
+ // })
166
+ // })
167
+
168
+ // app.all('/*', function (req, res) {
169
+ // proxy.web(req, res, {
170
+ // target: 'http://127.0.0.1:82'
171
+ // })
172
+ // })
173
+ // app.all('/rs/user', function (req, res) {
174
+ // proxy.web(req, res, {
175
+ // target: 'http://127.0.0.1:82'
176
+ // })
177
+ // })
178
+
179
+ module.exports = app.listen(8085, function (err) {
180
+ if (err) {
181
+ console.log(err)
182
+ return
183
+ }
184
+ console.log('Listening at http://localhost:8085')
185
+ })
@@ -0,0 +1,2 @@
1
+ Manifest-Version: 1.0
2
+
@@ -1,31 +1,31 @@
1
- function isVersionGreaterThan (version1, version2) {
2
- const v1parts = version1.split('.')
3
- const v2parts = version2.split('.')
4
- let flag = false
5
- for (let i = 0; i < v1parts.length; ++i) {
6
- if (v1parts[i] > v2parts[i]) {
7
- flag = true
8
- break
9
- }
10
- }
11
-
12
- return flag
13
- }
14
-
15
- const pkg = require('../package.json')
16
- const checkVersion = () => {
17
- console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 addressclient 版本, 会发送 api/af-revenue/sql ,api/af-revenue/logic 到v4 服务')
18
- const {devDependencies} = pkg
19
- if (devDependencies && devDependencies['system-clients']) {
20
- if (isVersionGreaterThan(devDependencies['system-clients'], '3.2.87')) {
21
- console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 systemClients 版本不兼容旧版登录')
22
- console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '登录是会发送 api/af-auth 请求')
23
- console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请转发到公司 v4 测试地址或者客户 v4 网关')
24
- console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '如不使用新版登录,请降级 system-clients 版本到 3.2.87')
25
- console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请查看营收后台升级日志:' +
26
- 'http://aote-office.8866.org:31467/sale-doc-web/V4Product/%E8%90%A5%E6%94%B6%E5%90%8E%E5%8F%B0%E6%94%B9%E9%80%A0%E8%AF%B4%E6%98%8E')
27
- }
28
- }
29
- }
30
-
31
- module.exports = checkVersion
1
+ function isVersionGreaterThan (version1, version2) {
2
+ const v1parts = version1.split('.')
3
+ const v2parts = version2.split('.')
4
+ let flag = false
5
+ for (let i = 0; i < v1parts.length; ++i) {
6
+ if (v1parts[i] > v2parts[i]) {
7
+ flag = true
8
+ break
9
+ }
10
+ }
11
+
12
+ return flag
13
+ }
14
+
15
+ const pkg = require('../package.json')
16
+ const checkVersion = () => {
17
+ console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 addressclient 版本, 会发送 api/af-revenue/sql ,api/af-revenue/logic 到v4 服务')
18
+ const {devDependencies} = pkg
19
+ if (devDependencies && devDependencies['system-clients']) {
20
+ if (isVersionGreaterThan(devDependencies['system-clients'], '3.2.87')) {
21
+ console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请注意:当前使用的 systemClients 版本不兼容旧版登录')
22
+ console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '登录是会发送 api/af-auth 请求')
23
+ console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请转发到公司 v4 测试地址或者客户 v4 网关')
24
+ console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '如不使用新版登录,请降级 system-clients 版本到 3.2.87')
25
+ console.log('\x1b[48;5;88m\x1b[1m\x1b[37m%s\x1b[0m', '请查看营收后台升级日志:' +
26
+ 'http://aote-office.8866.org:31467/sale-doc-web/V4Product/%E8%90%A5%E6%94%B6%E5%90%8E%E5%8F%B0%E6%94%B9%E9%80%A0%E8%AF%B4%E6%98%8E')
27
+ }
28
+ }
29
+ }
30
+
31
+ module.exports = checkVersion